direct message

This commit is contained in:
Peter Maquiran
2024-08-22 12:27:57 +01:00
parent 24aac56824
commit 09a8693ea9
21 changed files with 278 additions and 172 deletions
+7 -7
View File
@@ -41,24 +41,24 @@ export const MessageEntitySchema = z.object({
type Message = z.infer<typeof MessageEntitySchema>;
export class MessageEntity implements Message {
export class MessageEntity {
$id: number
id: string
$id?: number
id?: string
roomId?: string
receiverId?: number
message: string
message?: string
messageType: number = 0
canEdit: boolean = false
oneShot: boolean = false
sentAt: string
sentAt?: string
requireUnlock: boolean = false
info: {
memberId?: number
readAt?: string,
deliverAt?: string
}[] = []
sender: {
sender!: {
wxUserId: number,
wxFullName: string,
wxeMail: string,
@@ -82,7 +82,7 @@ export class MessageEntity implements Message {
reactions = []
requestId: string
requestId!: string
constructor() {}