Skip to content

Commit

Permalink
fix: 更精确的筛选
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Dec 20, 2024
1 parent b3b48b0 commit b631e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/onebot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export class NapCatOneBot11Adapter {
guildId: ''
};
const msg = (await this.core.apis.MsgApi.queryMsgsWithFilterExWithSeq(peer, msgSeq)).msgList.find(e => e.msgType == NTMsgType.KMSGTYPEGRAYTIPS);
const element = msg?.elements[0];
const element = msg?.elements.find(e => !!e.grayTipElement?.revokeElement);
if (msg && element) {
const recallEvent = await this.emitRecallMsg(msg, element);
try {
Expand Down

0 comments on commit b631e6f

Please sign in to comment.