fix(main): compare CategoryID against 0 and discord.NullChannelID for 'global channels'
This commit is contained in:
parent
0bee19a27c
commit
1902f5908d
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue