Browse Source

fix(main): compare CategoryID against 0 and discord.NullChannelID for 'global channels'

rigormorrtiss 4 years ago
parent
commit
1902f5908d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      discordo.go

+ 1 - 1
discordo.go

@@ -188,7 +188,7 @@ func onGuildsDropDownSelected(_ string, i int) {
 			channelNode.SetColor(tcell.GetColor(config.Theme.TreeNodeForeground))
 			channelsTreeNode.AddChild(channelNode)
 		case discord.GuildText, discord.GuildNews:
-			if channel.CategoryID == discord.NullChannelID {
+			if channel.CategoryID == 0 || channel.CategoryID == discord.NullChannelID {
 				channelNode.SetText("[::d]#" + channel.Name + "[-:-:-]")
 				channelsTreeNode.AddChild(channelNode)
 			}