fix: getfile

This commit is contained in:
手瓜一十雪 committed 2024-08-29 21:55:44 +08:00
1 parent e1e4d038d9
commit f14726ed1a
2 files changed
+2 -5

No files matched your search

-3
View File
@@ -353,9 +353,6 @@ export class NTQQFileApi {
chatType: chatType,
peerUid: peerUid,
}, [msgId]);
if (msg.msgList.length === 0) {
return fileTransNotifyInfo.filePath;
}
const mixElement = msg.msgList.find((msg) => msg.msgId === msgId)?.elements.find((e) => e.elementId === elementId);
const mixElementInner = mixElement?.videoElement ?? mixElement?.fileElement ?? mixElement?.pttElement ?? mixElement?.picElement;
let realPath = mixElementInner?.filePath;