fix: 修复语音首播并完善消息解析与会话兼容性

(cherry picked from commit 214090192f5dfc91cdec0269bad434d3e22394d8)
This commit is contained in:
电摇小子 authored and Wxw-Gu committed 2026-08-03 10:04:45 +08:00
1 parent d7a2dd3709
commit e8cbfaf223
18 files changed
+846 -206

No files matched your search

+3 -6
View File
@@ -125,10 +125,7 @@ const COLD_IMAGE_LOAD_GAP_MS = 100
const MAX_CONCURRENT_COLD_IMAGE_LOADS = 2
function pumpColdImageLoads(): void {
if (
activeColdImageLoads >= MAX_CONCURRENT_COLD_IMAGE_LOADS ||
coldImageLoadQueue.length === 0
) {
if (activeColdImageLoads >= MAX_CONCURRENT_COLD_IMAGE_LOADS || coldImageLoadQueue.length === 0) {
return
}
@@ -768,8 +765,8 @@ app.whenReady().then(async () => {
return contacts
})
ipcMain.handle('db:getContactAvatars', (_, usernames: string[]) => {
const avatars = chat.getContactAvatars(usernames)
ipcMain.handle('db:getContactAvatars', async (_, usernames: string[]) => {
const avatars = await chat.getContactAvatars(usernames)
if (chat.isReady()) mergeBootstrapAvatars(chat.getCurrentAccountRoot(), avatars)
return avatars
})