fix: 修复公众号消息读取与 Windows 中文路径兼容

- 支持从 biz_message 分片读取公众号聊天记录
- 在左侧栏增加独立的公众号折叠分组
- 为 Windows 中文数据目录建立 ASCII 路径桥接 (#12)
- 补充公众号分片、侧栏分类和路径桥接测试
This commit is contained in:
Wxw-Gu
2026-08-07 16:21:39 +08:00
parent 0b845db2e0
commit 96c67f5bf8
6 changed files with 306 additions and 36 deletions
+2
View File
@@ -34,6 +34,7 @@ export interface FormattedContact {
m_nsNickName: string
md5: string
type: 'user' | 'group'
isOfficialAccount?: boolean
avatar?: string
wechatNickname?: string
remark?: string
@@ -157,6 +158,7 @@ export function listContacts(filter?: string): FormattedContact[] {
m_nsNickName: user.nickname || '未知用户',
md5,
type: isGroup ? 'group' : 'user',
isOfficialAccount: !isGroup && user.m_nsUsrName.startsWith('gh_'),
avatar: typeof user.avatar === 'string' ? user.avatar : undefined,
wechatNickname: user.wechatNickname,
remark: user.remark,