refactor: send rate

This commit is contained in:
手瓜一十雪 committed 2024-05-30 22:38:02 +08:00
1 parent f29836be15
commit 19c84b4344
2 files changed
+5 -2

No files matched your search

@@ -118,7 +118,10 @@ const _handlers: {
[OB11MessageDataType.file]: async (sendMsg, context) => {
const { path, fileName } = await handleOb11FileLikeMessage(sendMsg, context);
//logDebug('发送文件', path, fileName);
return SendMsgElementConstructor.file(path, fileName);
const FileEle = await SendMsgElementConstructor.file(path, fileName);
// 清除Upload的应该
// context.deleteAfterSentFiles.push(fileName || FileEle.fileElement.filePath);
return FileEle;
},
[OB11MessageDataType.video]: async (sendMsg, context) => {