diff --git a/CHANGES.md b/CHANGES.md index c40c66a0b25..027b9e84166 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -17,6 +17,7 @@ Bugfix 🐛: - Fix issue when opening encrypted files (#3186) - Fix wording issue (#3242) - Fix missing sender information after edits (#3184) + - Fix read marker not updating automatically (#3267) Translations 🗣: - diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailViewModel.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailViewModel.kt index d64acb9afb9..1dd13bf4810 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailViewModel.kt @@ -550,7 +550,7 @@ class RoomDetailViewModel @AssistedInject constructor( private fun stopTrackingUnreadMessages() { if (trackUnreadMessages.getAndSet(false)) { mostRecentDisplayedEvent?.root?.eventId?.also { - viewModelScope.launch { + session.coroutineScope.launch { tryOrNull { room.setReadMarker(it) } } }