mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
send .fullyRead marker when leaving the room
This commit is contained in:
@@ -122,6 +122,9 @@ class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol
|
||||
}
|
||||
|
||||
func stop() {
|
||||
// When navigating away from the room, we need to mark the room as fully read.
|
||||
// This does not affect the read receipts only the notification count.
|
||||
Task { await roomProxy.markAsRead(receiptType: .fullyRead) }
|
||||
// Work around QLPreviewController dismissal issues, see the InteractiveQuickLookModifier.
|
||||
state.bindings.mediaPreviewViewModel = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user