fix: 修复上传file://格式的文件时会误删原文件

This commit is contained in:
linyuchen 2024-02-04 22:00:23 +08:00
parent b830cfbfa0
commit 5194c279d8

View File

@ -300,7 +300,6 @@ async function listenSendMessage(postData: PostDataSendMsg) {
name: group.name,
uid: group.uid
}
} else {
sendMsgResult.status = -1;
sendMsgResult.retcode = -1;
@ -360,9 +359,9 @@ async function listenSendMessage(postData: PostDataSendMsg) {
} else {
localFilePath = path;
}
sendFiles.push(localFilePath);
}
message.file = localFilePath
sendFiles.push(localFilePath);
} else if (message.type == "reply") {
let msgId = message.data?.id || message.msgId
let replyMessage = msgHistory.find(msg => msg.raw.msgId == msgId)