Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(channels): pass support-channel visibility to the team channels list (#9123)

Eric Hayes8d1800446103
diff --git a/apps/web/src/features/channels-view/core/support-channels.ts b/apps/web/src/features/channels-view/core/support-channels.ts
index 347b6e066b..e177bd6362 100644
--- a/apps/web/src/features/channels-view/core/support-channels.ts
+++ b/apps/web/src/features/channels-view/core/support-channels.ts
@@ -42,7 +42,12 @@ export function channelEntityFromListItem(
* when the paged source is mostly support conversations.
*/
export function applySupportChannelVisibility(
- scope: 'channels' | 'direct_messages' | 'recents' | 'search',
+ scope:
+ | 'team_channels'
+ | 'channels'
+ | 'direct_messages'
+ | 'recents'
+ | 'search',
channels: readonly ChannelEntity[],
extra: readonly ChannelEntity[],
hide: boolean
diff --git a/apps/web/src/features/channels-view/queries.ts b/apps/web/src/features/channels-view/queries.ts
index a650994250..75f3c6dfbb 100644
--- a/apps/web/src/features/channels-view/queries.ts
+++ b/apps/web/src/features/channels-view/queries.ts
@@ -426,7 +426,8 @@ export function useChannelsSources(
team_channels: useChannelsDataSource(
'team_channels',
() => enabled('team_channels'),
- () => sortBy('team_channels')
+ () => sortBy('team_channels'),
+ hideSupportChannels
),
channels: useChannelsDataSource(
'channels',