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

This commit is contained in:
rigormorrtiss 2021-08-07 18:40:02 +04:00
parent 0bee19a27c
commit 1902f5908d

View file

@ -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)
}