fix: tighten feishu mention trigger matching (openclaw#11088) thanks @openperf

Co-authored-by: 王春跃 <80630709+openperf@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
This commit is contained in:
Tak Hoffman
2026-02-11 22:33:04 -06:00
parent 8fdb2e64a7
commit 3d771afe79
2 changed files with 65 additions and 1 deletions

View File

@@ -216,7 +216,7 @@ function parseMessageContent(content: string, messageType: string): string {
function checkBotMentioned(event: FeishuMessageEvent, botOpenId?: string): boolean {
const mentions = event.message.mentions ?? [];
if (mentions.length === 0) return false;
if (!botOpenId) return mentions.length > 0;
if (!botOpenId) return false;
return mentions.some((m) => m.id.open_id === botOpenId);
}