From 7fef5d61247da7848abec83e7739c44f219b7566 Mon Sep 17 00:00:00 2001 From: Aubin Date: Tue, 14 Jan 2025 14:58:14 +0100 Subject: [PATCH] pass the provider_visibility in Slack activities --- connectors/src/connectors/slack/lib/channels.ts | 2 ++ connectors/src/connectors/slack/temporal/activities.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/connectors/src/connectors/slack/lib/channels.ts b/connectors/src/connectors/slack/lib/channels.ts index cacb3ba0db1fb..941bdbff87927 100644 --- a/connectors/src/connectors/slack/lib/channels.ts +++ b/connectors/src/connectors/slack/lib/channels.ts @@ -18,6 +18,7 @@ export type SlackChannelType = { slackId: string; permission: ConnectorPermission; agentConfigurationId: string | null; + private: boolean; }; export async function updateSlackChannelInConnectorsDb({ @@ -60,6 +61,7 @@ export async function updateSlackChannelInConnectorsDb({ slackId: channel.slackChannelId, permission: channel.permission, agentConfigurationId: channel.agentConfigurationId, + private: channel.private, }; } diff --git a/connectors/src/connectors/slack/temporal/activities.ts b/connectors/src/connectors/slack/temporal/activities.ts index bcf3b8ccb32ff..5f757938291e3 100644 --- a/connectors/src/connectors/slack/temporal/activities.ts +++ b/connectors/src/connectors/slack/temporal/activities.ts @@ -255,6 +255,7 @@ export async function syncChannel( parentId: null, parents: [slackChannelInternalIdFromSlackChannelId(channelId)], mimeType: MIME_TYPES.SLACK.CHANNEL, + providerVisibility: channel.private ? "private" : "public", }); }