fix: use renamed mapMattermostChannelTypeToChatType in interaction handler

Upstream renamed channelKind → mapMattermostChannelTypeToChatType;
update the two call sites in the interactive buttons code.
This commit is contained in:
Tony Dehnke
2026-03-02 08:21:50 +00:00
committed by Muhammed Mukhthar CM
parent 46b1ed2537
commit 3bf8db7bf6

View File

@@ -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;