Mattermost: simplify mention gate decision usage

This commit is contained in:
Joseph Turian 2026-02-26 03:52:36 -05:00 committed by Muhammed Mukhthar CM
parent d0297888b9
commit 15a22218d0
1 changed files with 2 additions and 2 deletions

View File

@ -814,7 +814,7 @@ export async function monitorMattermostProvider(opts: MonitorMattermostOpts = {}
oncharTriggered,
canDetectMention,
});
const { shouldRequireMention, shouldBypassMention, effectiveWasMentioned } = mentionDecision;
const { shouldRequireMention, shouldBypassMention } = mentionDecision;
if (mentionDecision.dropReason === "onchar-not-triggered") {
logVerboseMessage(
@ -943,7 +943,7 @@ export async function monitorMattermostProvider(opts: MonitorMattermostOpts = {}
ReplyToId: threadRootId,
MessageThreadId: threadRootId,
Timestamp: typeof post.create_at === "number" ? post.create_at : undefined,
WasMentioned: kind !== "direct" ? effectiveWasMentioned : undefined,
WasMentioned: kind !== "direct" ? mentionDecision.effectiveWasMentioned : undefined,
CommandAuthorized: commandAuthorized,
OriginatingChannel: "mattermost" as const,
OriginatingTo: to,