Explorar o código

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

Ken Perkins hai 2 meses
pai
achega
823f07f45d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 	}