mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-24 02:15:46 +03:00
Merge pull request #3267 from SpiritCroc/read_marker
Fix updating read marker automatically
This commit is contained in:
commit
c9abdb5def
2 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@ Bugfix 🐛:
|
||||||
- Fix issue when opening encrypted files (#3186)
|
- Fix issue when opening encrypted files (#3186)
|
||||||
- Fix wording issue (#3242)
|
- Fix wording issue (#3242)
|
||||||
- Fix missing sender information after edits (#3184)
|
- Fix missing sender information after edits (#3184)
|
||||||
|
- Fix read marker not updating automatically (#3267)
|
||||||
|
|
||||||
Translations 🗣:
|
Translations 🗣:
|
||||||
-
|
-
|
||||||
|
|
|
@ -550,7 +550,7 @@ class RoomDetailViewModel @AssistedInject constructor(
|
||||||
private fun stopTrackingUnreadMessages() {
|
private fun stopTrackingUnreadMessages() {
|
||||||
if (trackUnreadMessages.getAndSet(false)) {
|
if (trackUnreadMessages.getAndSet(false)) {
|
||||||
mostRecentDisplayedEvent?.root?.eventId?.also {
|
mostRecentDisplayedEvent?.root?.eventId?.also {
|
||||||
viewModelScope.launch {
|
session.coroutineScope.launch {
|
||||||
tryOrNull { room.setReadMarker(it) }
|
tryOrNull { room.setReadMarker(it) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue