diff --git a/src/app_service/service/activity_center/service.nim b/src/app_service/service/activity_center/service.nim index db80b057af..7b52584955 100644 --- a/src/app_service/service/activity_center/service.nim +++ b/src/app_service/service/activity_center/service.nim @@ -79,6 +79,15 @@ QtObject: proc init*(self: Service) = self.asyncActivityNotificationLoad() + self.events.on(SignalType.Message.event) do(e: Args): + var receivedData = MessageSignal(e) + + # Handling activityCenterNotifications updates + if (receivedData.activityCenterNotifications.len > 0): + self.events.emit( + SIGNAL_ACTIVITY_CENTER_NOTIFICATIONS_LOADED, + ActivityCenterNotificationsArgs(activityCenterNotifications: receivedData.activityCenterNotifications) + ) proc hasMoreToShow*(self: Service): bool = return self.cursor != ""