fix: 多次上报自身消息

This commit is contained in:
手瓜一十雪 committed 2024-08-01 22:00:40 +08:00
1 parent c2b24f4f8c
commit 116bfa2666
1 file changed
+3 -3
+3 -3
View File
@@ -242,10 +242,8 @@ export class NapCatOnebot11 {
this.postRecallMsg(msgList).then().catch(logError);
for (const msg of msgList.filter(e => e.senderUin == selfInfo.uin)) {
// console.log(msg);
if (msg.sendStatus !== 2) {
if (msg.sendStatus == 2) {
//完成后再post
return;
}
OB11Constructor.message(msg).then((_msg) => {
_msg.target_id = parseInt(msg.peerUin);
if (ob11Config.reportSelfMessage) {
@@ -256,6 +254,8 @@ export class NapCatOnebot11 {
}
}).catch(logError);
}
}
};
msgListener.onAddSendMsg = (msg) => {