Explorar el Código

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

rigormorrtiss hace 4 años
padre
commit
1902f5908d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)
 			}