Jelajahi Sumber

fix(ui/chat): skip ViewChannel permission check for category channels (#754)

Ken Perkins 2 bulan lalu
induk
melakukan
823f07f45d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      internal/ui/chat/guilds_tree.go

+ 1 - 1
internal/ui/chat/guilds_tree.go

@@ -200,7 +200,7 @@ func (gt *guildsTree) createGuildNode(n *tview.TreeNode, guild discord.Guild) {
 }
 
 func (gt *guildsTree) createChannelNode(node *tview.TreeNode, channel discord.Channel) {
-	if channel.Type != discord.DirectMessage && channel.Type != discord.GroupDM && !gt.chatView.state.HasPermissions(channel.ID, discord.PermissionViewChannel) {
+	if channel.Type != discord.DirectMessage && channel.Type != discord.GroupDM && channel.Type != discord.GuildCategory && !gt.chatView.state.HasPermissions(channel.ID, discord.PermissionViewChannel) {
 		return
 	}