diff --git a/src/app/modules/main/activity_center/io_interface.nim b/src/app/modules/main/activity_center/io_interface.nim index b7b75048e3..5e68251636 100644 --- a/src/app/modules/main/activity_center/io_interface.nim +++ b/src/app/modules/main/activity_center/io_interface.nim @@ -21,9 +21,6 @@ method viewDidLoad*(self: AccessInterface) {.base.} = method hasMoreToShow*(self: AccessInterface): bool {.base.} = raise newException(ValueError, "No implementation available") -method unreadActivityCenterNotificationsCountFromView*(self: AccessInterface): int {.base.} = - raise newException(ValueError, "No implementation available") - method unreadActivityCenterNotificationsCount*(self: AccessInterface): int {.base.} = raise newException(ValueError, "No implementation available") diff --git a/src/app/modules/main/activity_center/module.nim b/src/app/modules/main/activity_center/module.nim index 66413e8c4f..98a66f7f63 100644 --- a/src/app/modules/main/activity_center/module.nim +++ b/src/app/modules/main/activity_center/module.nim @@ -68,9 +68,6 @@ method viewDidLoad*(self: Module) = method hasMoreToShow*(self: Module): bool = self.controller.hasMoreToShow() -method unreadActivityCenterNotificationsCountFromView*(self: Module): int = - self.view.unreadCount() - method unreadActivityCenterNotificationsCount*(self: Module): int = self.controller.unreadActivityCenterNotificationsCount() diff --git a/src/app/modules/main/module.nim b/src/app/modules/main/module.nim index e85cdb6228..d563766658 100644 --- a/src/app/modules/main/module.nim +++ b/src/app/modules/main/module.nim @@ -963,7 +963,7 @@ method onChatLeft*[T](self: Module[T], chatId: string) = proc checkIfWeHaveNotifications[T](self: Module[T]) = let sectionWithUnread = self.view.model().isThereASectionWithUnreadMessages() - let activtyCenterNotifications = self.activityCenterModule.unreadActivityCenterNotificationsCountFromView() > 0 + let activtyCenterNotifications = self.activityCenterModule.unreadActivityCenterNotificationsCount() > 0 self.view.setNotificationAvailable(sectionWithUnread or activtyCenterNotifications) method onActivityNotificationsUpdated[T](self: Module[T]) =