There was an error while loading. Please reload this page.
1 parent d1f3cb1 commit d93191eCopy full SHA for d93191e
2 files changed
slack/actions/deco-chat/channels/invoke.ts
@@ -14,9 +14,8 @@ export default async function invoke(
14
if (challenge) {
15
return { challenge };
16
}
17
-
18
- const [channel, thread] = props.type === "event_callback"
19
- ? [props.event.user, props.event.channel]
+ const [channel, thread] = props.event.channel_type === "im"
+ ? [ctx.botUserId ?? props.event.channel, props.event.user]
20
: [props.event.channel, props.event.channel];
21
const linkProps =
22
await ctx.appStorage.getItem<JoinChannelProps & { installId: string }>(
slack/mod.ts
@@ -37,6 +37,7 @@ export interface SlackWebhookPayload {
37
team: string;
38
channel: string;
39
ts: string;
40
+ channel_type: string;
41
};
42
43
0 commit comments