给别的格式同步

This commit is contained in:
xuncha authored and xuncha committed 2026-03-13 21:14:46 +08:00
1 parent bd4296199a
commit 9d07a3a7bd
1 file changed
+4
+4
View File
@@ -3467,9 +3467,13 @@ class ExportService {
// 确定消息内容
let content: string | null
const mediaKey = `${msg.localType}_${msg.localId}`
const mediaItem = mediaCache.get(mediaKey)
if (msg.localType === 34 && options.exportVoiceAsText) {
// 使用预先转写的文字
content = voiceTranscriptMap.get(msg.localId) || '[语音消息 - 转文字失败]'
} else if (mediaItem && msg.localType === 3) {
content = mediaItem.relativePath
} else {
content = this.parseMessageContent(
msg.content,