fix: also honor requireMentionInThread for replyInThread-enabled groups

Groups with replyInThread: "enabled" create ad-hoc threads even with
default groupSessionScope: "group". Include these in the isThreadReply
check so requireMentionInThread works for them too.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Strider 2026-03-20 21:02:49 +08:00
parent 33da852ff1
commit cc4afb2686

View File

@ -417,7 +417,8 @@ export async function handleFeishuMessage(params: {
isThreadReply:
groupSession?.threadReply &&
(groupSession?.groupSessionScope === "group_topic" ||
groupSession?.groupSessionScope === "group_topic_sender"),
groupSession?.groupSessionScope === "group_topic_sender" ||
groupSession?.replyInThread),
globalConfig: feishuCfg,
groupConfig,
}));