fix(search): only show communities that are joined

Fixes #10184
This commit is contained in:
Jonathan Rainville 2024-12-20 11:26:09 -05:00
parent 309581548b
commit 0aea6fc82e

View File

@ -163,6 +163,7 @@ method prepareLocationMenuModel*(self: Module) =
# Community sections # Community sections
let communities = self.controller.getJoinedAndSpectatedCommunities() let communities = self.controller.getJoinedAndSpectatedCommunities()
for c in communities: for c in communities:
if c.joined:
items.add(self.buildLocationMenuForCommunity(c)) items.add(self.buildLocationMenuForCommunity(c))
self.view.locationMenuModel().setItems(items) self.view.locationMenuModel().setItems(items)