Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions slack/actions/deco-chat/channels/invoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ export default async function invoke(
ctx.cb.forTeam(props.event.team, joinChannel),
) ??
undefined;
console.log({ props, joinChannel, channel, thread, linkProps });
if (!linkProps) {
return;
}

const config = await ctx.getConfiguration(linkProps.installId);
console.log({ config });
const botId = config.botUserId;
// avoid loops
if (
Expand All @@ -36,6 +38,7 @@ export default async function invoke(
) {
return;
}
console.log({ botId });
const client = ctx.slackClientFor(config);
const streamCallbackUrl = linkProps.callbacks?.stream ??
config?.callbacks?.stream;
Expand Down
Loading