Skip to content

Replace isExternalChannel with channelVisibility enum#298

Merged
nandorojo merged 2 commits intov0/fernandorojo-867fa5c0from
v0/kavinvalli-4429-channel-visibility-enum-7465
Mar 25, 2026
Merged

Replace isExternalChannel with channelVisibility enum#298
nandorojo merged 2 commits intov0/fernandorojo-867fa5c0from
v0/kavinvalli-4429-channel-visibility-enum-7465

Conversation

@kavinvalli
Copy link

@kavinvalli kavinvalli commented Mar 24, 2026

Replaces the boolean isExternalChannel field with a more flexible channelVisibility enum.

What changed

  • Added ChannelVisibility type with values: private, workspace, external, unknown
  • Added channelVisibility field to Thread, Channel, ThreadInfo, ChannelInfo, and serialization types
  • Added getChannelVisibility() method to the Adapter interface
  • Implemented getChannelVisibility() in Slack adapter with detection of private channels (G*), DMs (D*), public channels (C*), and external Slack Connect channels
  • Removed all isExternalChannel references (no backwards compatibility needed since PR Add channelVisibility support to Thread, Channel, and Slack adapter #51 hasn't merged)

Slack Thread

@vercel
Copy link
Contributor

vercel bot commented Mar 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chat Ready Ready Preview, Comment, Open in v0 Mar 25, 2026 0:15am
chat-sdk-nextjs-chat Ready Ready Preview, Comment, Open in v0 Mar 25, 2026 0:15am

@vercel vercel bot changed the title Refactor isExternalChannel to channelVisibility enum Replace isExternalChannel with channelVisibility enum Mar 25, 2026
@nandorojo nandorojo merged commit cb50221 into v0/fernandorojo-867fa5c0 Mar 25, 2026
6 checks passed
@nandorojo nandorojo deleted the v0/kavinvalli-4429-channel-visibility-enum-7465 branch March 25, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants