From 3bf8db7bf6d9934c2f7bd8467fd69a157e980ebe Mon Sep 17 00:00:00 2001 From: Tony Dehnke Date: Mon, 2 Mar 2026 08:21:50 +0000 Subject: [PATCH] fix: use renamed mapMattermostChannelTypeToChatType in interaction handler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upstream renamed channelKind → mapMattermostChannelTypeToChatType; update the two call sites in the interactive buttons code. --- extensions/mattermost/src/mattermost/monitor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/mattermost/src/mattermost/monitor.ts b/extensions/mattermost/src/mattermost/monitor.ts index 47d95efad70..85ac53d97e8 100644 --- a/extensions/mattermost/src/mattermost/monitor.ts +++ b/extensions/mattermost/src/mattermost/monitor.ts @@ -466,7 +466,7 @@ export async function monitorMattermostProvider(opts: MonitorMattermostOpts = {} callbackUrl, resolveSessionKey: async (channelId: string) => { const channelInfo = await resolveChannelInfo(channelId); - const kind = channelKind(channelInfo?.type); + const kind = mapMattermostChannelTypeToChatType(channelInfo?.type); const teamId = channelInfo?.team_id ?? undefined; const route = core.channel.routing.resolveAgentRoute({ cfg, @@ -482,7 +482,7 @@ export async function monitorMattermostProvider(opts: MonitorMattermostOpts = {} }, dispatchButtonClick: async (opts) => { const channelInfo = await resolveChannelInfo(opts.channelId); - const kind = channelKind(channelInfo?.type); + const kind = mapMattermostChannelTypeToChatType(channelInfo?.type); const chatType = channelChatType(kind); const teamId = channelInfo?.team_id ?? undefined; const channelName = channelInfo?.name ?? undefined;