From 2eb6a1c62e58a9e7d06f67b0e25fa33e37dcc611 Mon Sep 17 00:00:00 2001 From: gavrielc Date: Tue, 12 May 2026 20:17:17 +0300 Subject: [PATCH] fix(permissions): skip channel-type prefix for userIds that already contain a colon Platforms like Teams send userIds in "29:xxx" format which already include a colon. Blindly prefixing with channelType produced double- namespaced ids (e.g. "teams:29:xxx") that never matched the users table, causing all approval clicks to be rejected. Mirror the resolveOrCreateUser logic: only prefix when the raw id has no colon. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/modules/permissions/index.ts | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/modules/permissions/index.ts b/src/modules/permissions/index.ts index 98a9463be..2b51d63dd 100644 --- a/src/modules/permissions/index.ts +++ b/src/modules/permissions/index.ts @@ -227,11 +227,14 @@ async function handleSenderApprovalResponse(payload: ResponsePayload): Promise