修复txt导出不映射的问题

This commit is contained in:
xuncha
2026-01-28 20:05:48 +08:00
parent e63f901478
commit b6c9f2b32b

View File

@@ -2546,12 +2546,15 @@ class ExportService {
for (let i = 0; i < sortedMessages.length; i++) { for (let i = 0; i < sortedMessages.length; i++) {
const msg = sortedMessages[i] const msg = sortedMessages[i]
const contentValue = this.formatPlainExportContent( const mediaKey = `${msg.localType}_${msg.localId}`
msg.content, const mediaItem = mediaCache.get(mediaKey)
msg.localType, const contentValue = mediaItem?.relativePath
options, || this.formatPlainExportContent(
voiceTranscriptMap.get(msg.localId) msg.content,
) msg.localType,
options,
voiceTranscriptMap.get(msg.localId)
)
let senderRole: string let senderRole: string
let senderWxid: string let senderWxid: string