mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-08-17 11:37:06 +08:00
fix: 修复媒体导出与 HTML 聊天档案体验
- 修复打包版图片、语音解析不可用,内置 FFmpeg 与必要运行时依赖 - 修复 HTML 导出原图查找、缩略图回退及增量档案媒体解析问题 - 修复本人昵称在软件和 HTML 导出中显示为微信号的问题,并兼容旧档案昵称迁移 - 修复 HTML 语音播放器超出消息气泡的问题 - 优化 HTML 双向滚动加载,大量消息时最多渲染 240 条,避免页面卡顿 - 移除图片解密页面中手动配置 FFmpeg 的相关提示 - 补充图片解密、语音运行时、打包资源和 HTML 导出相关测试
This commit is contained in:
@@ -15,7 +15,9 @@ import {
|
||||
flushBootstrapCacheWritesSync,
|
||||
getBootstrapCache,
|
||||
getCachedMessages,
|
||||
mergeCachedSelfInfo,
|
||||
saveBootstrapContacts,
|
||||
saveBootstrapSelf,
|
||||
saveCachedMessages
|
||||
} from '../../src/main/services/bootstrap-cache'
|
||||
|
||||
@@ -78,4 +80,29 @@ describe('bootstrap cache', () => {
|
||||
clearBootstrapCache()
|
||||
expect(getBootstrapCache(accountRoot)).toBeNull()
|
||||
})
|
||||
|
||||
it('reuses a hydrated contact nickname when cached self info only contains the account id', () => {
|
||||
const selfRoot = '/fixture/a969409112_d784'
|
||||
saveBootstrapContacts(selfRoot, [
|
||||
{
|
||||
m_nsUsrName: 'a969409112',
|
||||
m_nsNickName: '濑岛田井卫',
|
||||
md5: 'self-md5',
|
||||
type: 'user'
|
||||
}
|
||||
])
|
||||
saveBootstrapSelf(selfRoot, {
|
||||
wxid: 'a969409112',
|
||||
nickname: 'a969409112',
|
||||
accountRoot: selfRoot
|
||||
})
|
||||
|
||||
expect(
|
||||
mergeCachedSelfInfo(selfRoot, {
|
||||
wxid: 'a969409112',
|
||||
nickname: 'a969409112',
|
||||
accountRoot: selfRoot
|
||||
}).nickname
|
||||
).toBe('濑岛田井卫')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user