From de216ea3ff717b9e59b51702703bc7766f890145 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 11 Feb 2026 15:24:48 -0800 Subject: [PATCH] fix: TS compilation errors from #283 squash merge (#286) --- src/channels/signal/group-gating.ts | 1 + src/channels/telegram.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/channels/signal/group-gating.ts b/src/channels/signal/group-gating.ts index 15747b9..01f8ea0 100644 --- a/src/channels/signal/group-gating.ts +++ b/src/channels/signal/group-gating.ts @@ -8,6 +8,7 @@ import { isGroupAllowed, isGroupUserAllowed, resolveGroupMode, type GroupMode } export interface SignalGroupConfig { mode?: GroupMode; + allowedUsers?: string[]; requireMention?: boolean; // @deprecated legacy alias } diff --git a/src/channels/telegram.ts b/src/channels/telegram.ts index df7f70d..15df85f 100644 --- a/src/channels/telegram.ts +++ b/src/channels/telegram.ts @@ -58,7 +58,7 @@ export class TelegramAdapter implements ChannelAdapter { * Apply group gating for a message context. * Returns null if the message should be dropped, or message metadata if it should proceed. */ - private applyGroupGating(ctx: { chat: { type: string; id: number; title?: string }; message?: { text?: string; entities?: { type: string; offset: number; length: number }[] } }): { isGroup: boolean; groupName?: string; wasMentioned: boolean; isListeningMode?: boolean } | null { + private applyGroupGating(ctx: { chat: { type: string; id: number; title?: string }; from?: { id: number }; message?: { text?: string; entities?: { type: string; offset: number; length: number }[] } }): { isGroup: boolean; groupName?: string; wasMentioned: boolean; isListeningMode?: boolean } | null { const chatType = ctx.chat.type; const isGroup = chatType === 'group' || chatType === 'supergroup'; const groupName = isGroup && 'title' in ctx.chat ? ctx.chat.title : undefined;