fix: make same-chat approvals work across channels

This commit is contained in:
Peter Steinberger
2026-03-30 06:35:04 +09:00
parent 1ca01b738b
commit 574d3c5213
11 changed files with 169 additions and 15 deletions

View File

@@ -457,10 +457,7 @@ export const telegramPlugin = createChatChannelPlugin({
},
},
execApprovals: {
getInitiatingSurfaceState: ({ cfg, accountId }) =>
isTelegramExecApprovalClientEnabled({ cfg, accountId })
? { kind: "enabled" }
: { kind: "disabled" },
getInitiatingSurfaceState: () => ({ kind: "enabled" }),
hasConfiguredDmRoute: ({ cfg }) => hasTelegramExecApprovalDmRoute(cfg),
shouldSuppressForwardingFallback: (params) =>
shouldSuppressTelegramExecApprovalForwardingFallback(params),