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", }); }