feat: 添加联系人信息异步加载功能,优化会话列表展示
This commit is contained in:
1 parent
e5f57c7359
commit
e85254bf98
6 files changed
+601
-95
No files matched your search
@@ -390,6 +390,10 @@ function registerIpcHandlers() {
|
||||
return chatService.getSessions()
|
||||
})
|
||||
|
||||
ipcMain.handle('chat:enrichSessionsContactInfo', async (_, usernames: string[]) => {
|
||||
return chatService.enrichSessionsContactInfo(usernames)
|
||||
})
|
||||
|
||||
ipcMain.handle('chat:getMessages', async (_, sessionId: string, offset?: number, limit?: number) => {
|
||||
return chatService.getMessages(sessionId, offset, limit)
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user