支持聊天记录转发解析与嵌套聊天记录解析;优化聊天记录转发窗口样式

This commit is contained in:
cc
2026-03-20 00:02:49 +08:00
parent 7590623d26
commit 60dc911228
12 changed files with 1237 additions and 399 deletions

View File

@@ -1,4 +1,4 @@
import type { ChatSession, Message, Contact, ContactInfo } from './models'
import type { ChatSession, Message, Contact, ContactInfo, ChatRecordItem } from './models'
export interface SessionChatWindowOpenOptions {
source?: 'chat' | 'export'
@@ -24,6 +24,8 @@ export interface ElectronAPI {
resizeToFitVideo: (videoWidth: number, videoHeight: number) => Promise<void>
openImageViewerWindow: (imagePath: string, liveVideoPath?: string) => Promise<void>
openChatHistoryWindow: (sessionId: string, messageId: number) => Promise<boolean>
openChatHistoryPayloadWindow: (payload: { sessionId: string; title?: string; recordList: ChatRecordItem[] }) => Promise<boolean>
getChatHistoryPayload: (payloadId: string) => Promise<{ success: boolean; payload?: { sessionId: string; title?: string; recordList: ChatRecordItem[] }; error?: string }>
openSessionChatWindow: (sessionId: string, options?: SessionChatWindowOpenOptions) => Promise<boolean>
}
config: {

View File

@@ -129,11 +129,19 @@ export interface ChatRecordItem {
dataurl?: string // 数据URL
datathumburl?: string // 缩略图URL
datacdnurl?: string // CDN URL
cdndatakey?: string // CDN 数据 key
cdnthumbkey?: string // CDN 缩略图 key
aeskey?: string // AES密钥
md5?: string // MD5
fullmd5?: string // 原图 MD5
thumbfullmd5?: string // 缩略图 MD5
srcMsgLocalid?: number // 源消息 LocalId
imgheight?: number // 图片高度
imgwidth?: number // 图片宽度
duration?: number // 时长(毫秒)
chatRecordTitle?: string // 嵌套聊天记录标题
chatRecordDesc?: string // 嵌套聊天记录描述
chatRecordList?: ChatRecordItem[] // 嵌套聊天记录列表
}