fix chat ui details

This commit is contained in:
Peter Maquiran
2024-09-09 10:28:53 +01:00
parent e7887d4e5a
commit 96daa01f94
20 changed files with 236 additions and 108 deletions
@@ -2,9 +2,9 @@ import { EntityTable } from 'Dexie';
import { z } from 'zod';
export const UserPhotoTableSchema = z.object({
wxUserId: z.string(),
blob: z.instanceof(Blob),
attachmentId: z.string()
wxUserId: z.number(),
file: z.string(),
attachmentId: z.string().nullable()
})
export type UserPhotoTable = z.infer<typeof UserPhotoTableSchema>
+1 -1
View File
@@ -36,7 +36,7 @@ chatDatabase.version(1).stores({
attachment: AttachmentTableColumn,
distribution: DistributionTableColumn,
bold:BoldTableColumn,
userPhotoTable: UserPhotoTableColumn
userPhoto: UserPhotoTableColumn
});
chatDatabase.message.mapToClass(MessageEntity)