mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix chat bold
This commit is contained in:
@@ -62,6 +62,7 @@ export const MessageEntitySchema = z.object({
|
||||
safeFile: z.any().optional(),
|
||||
description: z.string().nullable().optional()
|
||||
})).optional(),
|
||||
origin: z.enum(['history', 'local', 'incoming']).optional()
|
||||
})
|
||||
|
||||
export type IMessage = z.infer<typeof MessageEntitySchema>;
|
||||
@@ -99,4 +100,8 @@ export class MessageEntity {
|
||||
return this.attachments.length >= 1
|
||||
}
|
||||
|
||||
static haveSeen(info: typeof MessageEntitySchema._type.info) {
|
||||
return info.filter(e => typeof e.readAt != 'string')
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user