fix chat bold

This commit is contained in:
Peter Maquiran
2024-09-02 12:33:43 +01:00
parent 18463e43e4
commit 1b9b4600ab
18 changed files with 162 additions and 81 deletions
+5
View File
@@ -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')
}
}