Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SupertigerDev authored Nov 30, 2024
1 parent a45a132 commit 6604336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chat-api/store/useChannels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ const getChannelsByServerId = (
return array().filter((channel) => {
const isServerChannel = channel?.serverId === serverId;
if (channel.type === ChannelType.CATEGORY && showPrivateCategories)
return true;
return isServerChannel;
const isPrivateChannel = !channel.hasPermission(
CHANNEL_PERMISSIONS.PUBLIC_CHANNEL
);
Expand Down

0 comments on commit 6604336

Please sign in to comment.