mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-30 01:06:11 +00:00
Mattermost: simplify mention gate decision usage
This commit is contained in:
committed by
Muhammed Mukhthar CM
parent
d0297888b9
commit
15a22218d0
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user