Skip to content

Commit

Permalink
fix: hide non-existent folders (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
Retropaint authored Sep 19, 2024
1 parent ce69326 commit 328a9c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ func (s *State) onReady(r *gateway.ReadyEvent) {
// Track guilds that have a parent (folder) to add orphan channels later
var folderGuildIds []discord.GuildID
for _, folder := range r.UserSettings.GuildFolders {
// Hide unnamed, single-server folders
if folder.Name == "" && len(folder.GuildIDs) < 2 {
continue
}
folderGuildIds = append(folderGuildIds, folder.GuildIDs...)

mainFlex.guildsTree.createFolderNode(folder)
Expand Down

0 comments on commit 328a9c9

Please sign in to comment.