Skip to content

Commit

Permalink
Merge pull request #3267 from SpiritCroc/read_marker
Browse files Browse the repository at this point in the history
Fix updating read marker automatically
  • Loading branch information
bmarty committed May 2, 2021
2 parents 8edbd32 + e3204c3 commit c9abdb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 🗣:
-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
}
}
Expand Down

0 comments on commit c9abdb5

Please sign in to comment.