mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix publication
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user