mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-18 04:50:08 +03:00
Fix updating read marker automatically
Change-Id: I84a51127dc7b434622ecdcab350c788ee3d623be
This commit is contained in:
parent
2605c6ac9b
commit
35a9c8a12f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue