fix: Cancel notifications for read rooms and clear app badge on iOS
This commit is contained in:
parent
a833bbcee5
commit
18b270a15c
3 changed files with 23 additions and 33 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue