mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-18 16:47:27 +00:00
fix(feishu): correct inverted dedup condition
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user