This commit is contained in:
手瓜一十雪 2024-08-12 17:49:09 +08:00
parent 64fdf62c4b
commit 35cc643440

View File

@ -251,10 +251,8 @@ export class NapCatOneBot11Adapter {
.catch(e => this.context.logger.logError('处理消息失败', e)); .catch(e => this.context.logger.logError('处理消息失败', e));
for (const msg of msgList.filter(e => e.senderUin == this.core.selfInfo.uin)) { for (const msg of msgList.filter(e => e.senderUin == this.core.selfInfo.uin)) {
// console.log(msg); if (msg.sendStatus == 2 && !msgIdSend.get(msg.msgId)) {
if (!!msgIdSend.get(msg.msgId)) continue;
msgIdSend.put(msg.msgId, true); msgIdSend.put(msg.msgId, true);
if (msg.sendStatus == 2) {
// 完成后再post // 完成后再post
OB11Constructor.message(this.core, msg, this.configLoader.configData.messagePostFormat) OB11Constructor.message(this.core, msg, this.configLoader.configData.messagePostFormat)
.then((ob11Msg) => { .then((ob11Msg) => {