fix: 优化群聊展示与群日报生成

This commit is contained in:
电摇小子 committed 2026-07-14 10:19:40 +08:00
1 parent 4fedc8c387
commit 52d2e63bc5
6 files changed
+206 -70

No files matched your search

+1
View File
@@ -38,6 +38,7 @@ declare global {
key: string
) => Promise<boolean | { success: boolean; error?: string; monitoring?: boolean }>
getContacts: (filter?: string) => Promise<Contact[]>
getContactAvatars: (usernames: string[]) => Promise<Record<string, string>>
getMessages: (userMd5: string, startTime?: number, endTime?: number) => Promise<Message[]>
getGroupSnapshot: (userMd5: string) => Promise<{
roomId: string
+1
View File
@@ -6,6 +6,7 @@ import { GroupReportExportRequest } from '../shared/group-report'
const api = {
initDb: (key: string) => ipcRenderer.invoke('db:init', key),
getContacts: (filter?: string) => ipcRenderer.invoke('db:getContacts', filter),
getContactAvatars: (usernames: string[]) => ipcRenderer.invoke('db:getContactAvatars', usernames),
getMessages: (userMd5: string, startTime?: number, endTime?: number) =>
ipcRenderer.invoke('db:getMessages', userMd5, startTime, endTime),
getGroupSnapshot: (userMd5: string) => ipcRenderer.invoke('db:getGroupSnapshot', userMd5),