🤖 Feishu: tighten mention gating
What: - require the bot open_id match for group mention detection when available Why: - prevent replies when other users are mentioned and the bot id is known Tests: - pnpm test
This commit is contained in:
@@ -250,7 +250,7 @@ export async function processFeishuMessage(
|
|||||||
const botOpenId = options.botOpenId?.trim();
|
const botOpenId = options.botOpenId?.trim();
|
||||||
const wasMentioned = botOpenId
|
const wasMentioned = botOpenId
|
||||||
? mentions.some((m) => m.id?.open_id === botOpenId || m.id?.user_id === botOpenId)
|
? mentions.some((m) => m.id?.open_id === botOpenId || m.id?.user_id === botOpenId)
|
||||||
: mentions.length > 0;
|
: false;
|
||||||
|
|
||||||
// In group chat, check requireMention setting
|
// In group chat, check requireMention setting
|
||||||
if (isGroup) {
|
if (isGroup) {
|
||||||
|
|||||||
Reference in New Issue
Block a user