From f7154988af6c383d4e993a9232a4feadeb371a4d Mon Sep 17 00:00:00 2001 From: yunweibang Date: Thu, 12 Mar 2026 14:45:52 +0800 Subject: [PATCH] fix(feishu): correct inverted dedup condition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit check() returns false on first call (new key) and true on subsequent calls (duplicate). The previous `!check()` guard was inverted — dropping every first delivery and passing all duplicates. Remove the negation so the guard correctly drops duplicates. --- extensions/feishu/src/monitor.account.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/feishu/src/monitor.account.ts b/extensions/feishu/src/monitor.account.ts index d900cb2f2b6..1dba7478d74 100644 --- a/extensions/feishu/src/monitor.account.ts +++ b/extensions/feishu/src/monitor.account.ts @@ -402,7 +402,7 @@ function registerEventHandlers( const messageId = event.message?.message_id?.trim(); if (messageId) { const eventKey = `${accountId}:evt:${messageId}`; - if (!eventDedup.check(eventKey)) { + if (eventDedup.check(eventKey)) { log(`feishu[${accountId}]: dropping duplicate event for message ${messageId}`); return; }