fix: 修复个人聊天界面和导出csv文件不显示名称问题,fix #1

This commit is contained in:
电摇小子
2026-01-04 15:53:26 +08:00
parent 55b792b23c
commit 02baed9bb6
4 changed files with 28 additions and 8 deletions
+1 -3
View File
@@ -161,14 +161,12 @@ app.whenReady().then(() => {
return {
id: msg.mesLocalID || Math.random().toString(),
from: msg.mesDes === '1' ? 'user' : 'assistant', // 1 通常是接收到的,0 是发送的?需要验证。Swift 说:[1: "user", 0: "assistant"]
from: msg.mesDes === 1 ? 'user' : 'assistant', // 1 通常是接收到的,0 是发送的?需要验证。Swift 说:[1: "user", 0: "assistant"]
type: MSG_TYPE_DICT[msgType] || msg.messageType,
datetime: date.toLocaleString('zh-CN', { hour12: false }),
content: content,
isSender: msg.mesDes === '0',
img: img,
name: name
// 实际上让我们坚持我们观察到的:1=用户(其他人), 0=助手(我)
}
})
})
+1 -1
View File
@@ -13,7 +13,7 @@ export interface UserContact {
export interface WechatMessage {
mesLocalID: string
mesDes: string
mesDes: number
messageType: string
msgCreateTime: string
msgContent: string