fix: honor mention-bypass for group commands

This commit is contained in:
Peter Steinberger committed 2026-01-09 02:52:44 +01:00
1 parent efa5f0bfe0
commit 3a99ac7e9a
7 files changed
+43 -5

No files matched your search

+2 -1
View File
@@ -326,6 +326,7 @@ export async function monitorIMessageProvider(
!mentioned &&
commandAuthorized &&
hasControlCommand(messageText);
const effectiveWasMentioned = mentioned || shouldBypassMention;
if (
isGroup &&
requireMention &&
@@ -387,7 +388,7 @@ export async function monitorIMessageProvider(
MediaPath: mediaPath,
MediaType: mediaType,
MediaUrl: mediaPath,
WasMentioned: mentioned,
WasMentioned: effectiveWasMentioned,
CommandAuthorized: commandAuthorized,
// Originating channel for reply routing.
OriginatingChannel: "imessage" as const,