mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fit message sernder can be null
This commit is contained in:
@@ -50,7 +50,7 @@ export const MessageEntitySchema = z.object({
|
||||
wxFullName: z.string(),
|
||||
wxeMail: z.string(),
|
||||
userPhoto: z.string().nullable(),
|
||||
}),
|
||||
}).nullable(),
|
||||
reactions: z.object({
|
||||
id: z.string(),
|
||||
reactedAt: z.string(),
|
||||
@@ -65,7 +65,7 @@ export const MessageEntitySchema = z.object({
|
||||
sending: z.boolean().optional(),
|
||||
attachments: z.array(MessageEntityAttachmentSchema).optional(),
|
||||
origin: z.enum(['history', 'local', 'incoming']).optional(),
|
||||
requestId: z.string().optional(),
|
||||
requestId: z.string().nullable().optional(),
|
||||
sendAttemp: z.number().optional(),
|
||||
hasAttachment: z.boolean().optional()
|
||||
})
|
||||
@@ -110,7 +110,7 @@ export class MessageEntity {
|
||||
}
|
||||
|
||||
meSender() {
|
||||
return this.sender.wxUserId == SessionStore.user.UserId
|
||||
return this.sender?.wxUserId == SessionStore.user.UserId
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user