From 60ceb07295b1c57121e8acc7c6fd8f63bd281a28 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Fri, 20 Dec 2024 11:26:09 -0500 Subject: [PATCH] fix(search): only show communities that are joined Fixes #10184 --- src/app/modules/main/app_search/module.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/modules/main/app_search/module.nim b/src/app/modules/main/app_search/module.nim index e76704995b..e6d9d58180 100644 --- a/src/app/modules/main/app_search/module.nim +++ b/src/app/modules/main/app_search/module.nim @@ -163,7 +163,8 @@ method prepareLocationMenuModel*(self: Module) = # Community sections let communities = self.controller.getJoinedAndSpectatedCommunities() for c in communities: - items.add(self.buildLocationMenuForCommunity(c)) + if c.joined: + items.add(self.buildLocationMenuForCommunity(c)) self.view.locationMenuModel().setItems(items)