mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
ab39d8de06
The sync update action is sent from the room list service state listener, which fires before the SDK has applied the new unread counts, leaving the app badge one sync behind. Drive both the badge and the clearing of delivered notifications for fully read rooms from the room list publisher instead, moving the observer from the ChatsTabFlowCoordinator into the UserSessionFlowCoordinator. The NotificationManager now receives the badge count from the caller so the same value can be reused elsewhere.