mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-19 19:15:30 +00:00
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:
committed by
Muhammed Mukhthar CM
parent
46b1ed2537
commit
3bf8db7bf6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user