refactor(@desktop/general): warnings building the app removed

This commit is contained in:
Sale Djenic 2021-12-20 19:25:15 +01:00 committed by Sale Djenic
parent df5a5a627d
commit 6441da8bb3
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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