refactor(@desktop/general): warnings building the app removed
This commit is contained in:
parent
df5a5a627d
commit
6441da8bb3
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue