fix(feishu): simplify eventDedup key — drop redundant accountId prefix

eventDedup is already scoped per account (one instance per
registerEventHandlers call), so the accountId prefix in the cache key
is redundant. Use `evt:${messageId}` instead.
This commit is contained in:
yunweibang
2026-03-12 15:20:29 +08:00
committed by Tak Hoffman
parent f7154988af
commit e9c1ab2e94

View File

@@ -401,7 +401,7 @@ function registerEventHandlers(
const event = data as unknown as FeishuMessageEvent;
const messageId = event.message?.message_id?.trim();
if (messageId) {
const eventKey = `${accountId}:evt:${messageId}`;
const eventKey = `evt:${messageId}`;
if (eventDedup.check(eventKey)) {
log(`feishu[${accountId}]: dropping duplicate event for message ${messageId}`);
return;