From 6441da8bb33f871efe70def75ff0bb64838044e8 Mon Sep 17 00:00:00 2001 From: Sale Djenic Date: Mon, 20 Dec 2021 19:25:15 +0100 Subject: [PATCH] refactor(@desktop/general): warnings building the app removed --- src/app/modules/main/communities/controller_interface.nim | 2 +- src/app/modules/main/module.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/modules/main/communities/controller_interface.nim b/src/app/modules/main/communities/controller_interface.nim index 9aa7735abb..a64f006f33 100644 --- a/src/app/modules/main/communities/controller_interface.nim +++ b/src/app/modules/main/communities/controller_interface.nim @@ -49,7 +49,7 @@ method requestCommunityInfo*(self: AccessInterface, communityId: string) {.base. method importCommunity*(self: AccessInterface, communityKey: string) {.base.} = raise newException(ValueError, "No implementation available") -method exportCommunity*(self: AccessInterface, communityId: string) {.base.} = +method exportCommunity*(self: AccessInterface, communityId: string): string {.base.} = raise newException(ValueError, "No implementation available") type diff --git a/src/app/modules/main/module.nim b/src/app/modules/main/module.nim index 2b6e3f59a1..958ecbbb13 100644 --- a/src/app/modules/main/module.nim +++ b/src/app/modules/main/module.nim @@ -138,7 +138,7 @@ method delete*[T](self: Module[T]) = self.viewVariant.delete self.controller.delete -method createCommunityItem*[T](self: Module[T], c: CommunityDto): SectionItem = +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