fix: Cancel notifications for read rooms and clear app badge on iOS

This commit is contained in:
krille-chan 2023-08-06 21:13:37 +02:00
commit 18b270a15c
No known key found for this signature in database
3 changed files with 23 additions and 33 deletions

View file

@ -359,6 +359,9 @@ class ChatController extends State<ChatPageWithRoom> {
_setReadMarkerFuture = timeline.setReadMarker(eventId: eventId).then((_) {
_setReadMarkerFuture = null;
});
if (eventId == timeline.events.first.eventId) {
Matrix.of(context).backgroundPush?.cancelNotification(roomId);
}
}
@override