diff --git a/src/app/modules/main/module.nim b/src/app/modules/main/module.nim index 2aebb4da6a..27f2253c67 100644 --- a/src/app/modules/main/module.nim +++ b/src/app/modules/main/module.nim @@ -165,6 +165,7 @@ proc createCommunityItem[T](self: Module[T], c: CommunityDto): SectionItem = let (unviewedCount, mentionsCount) = self.controller.getNumOfNotificationsForCommunity(c.id) let hasNotification = unviewedCount > 0 or mentionsCount > 0 let notificationsCount = mentionsCount # we need to add here number of requests + let active = self.getActiveSectionId() == c.id # We must pass on if the current item section is currently active to keep that property as it is result = initItem( c.id, SectionType.Community, @@ -176,7 +177,7 @@ proc createCommunityItem[T](self: Module[T], c: CommunityDto): SectionItem = c.color, hasNotification, notificationsCount, - active = false, + active, enabled = singletonInstance.localAccountSensitiveSettings.getCommunitiesEnabled(), c.joined, c.canJoin,