fix publication

This commit is contained in:
peter.maquiran
2025-09-17 18:37:35 +01:00
parent 5f7295d41c
commit 3eecedb23f
64 changed files with 1043 additions and 873 deletions
+6 -1
View File
@@ -60,7 +60,8 @@ export const MessageEntitySchema = z.object({
info: z.array(z.object({
memberId: z.number(),
readAt: z.string().nullable(),
deliverAt: z.string().nullable()
deliverAt: z.string().nullable(),
isDeleted: z.boolean().optional(),
})).optional(),
sending: z.boolean().optional(),
attachments: z.array(MessageEntityAttachmentSchema).optional(),
@@ -121,4 +122,8 @@ export class MessageEntity {
return this.sender?.wxUserId == SessionStore.user.UserId
}
get _isDeleted() {
return this.isDeleted || this.info.filter(e =>e.memberId == SessionStore.user.UserId && e.isDeleted).length == 1
}
}