Fix updating read marker automatically
Change-Id: I84a51127dc7b434622ecdcab350c788ee3d623be
This commit is contained in:
parent
2605c6ac9b
commit
35a9c8a12f
|
@ -542,7 +542,7 @@ class RoomDetailViewModel @AssistedInject constructor(
|
|||
private fun stopTrackingUnreadMessages() {
|
||||
if (trackUnreadMessages.getAndSet(false)) {
|
||||
mostRecentDisplayedEvent?.root?.eventId?.also {
|
||||
viewModelScope.launch {
|
||||
viewModelScope.launch(NonCancellable) {
|
||||
tryOrNull { room.setReadMarker(it) }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue