mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 09:25:49 +03:00
Fix / move read receipt on m.replace events
This commit is contained in:
parent
ecccb80e04
commit
adbfde94d6
1 changed files with 6 additions and 0 deletions
|
@ -350,6 +350,12 @@ class RoomDetailViewModel(initialState: RoomDetailViewState,
|
|||
|
||||
private fun handleEventDisplayed(action: RoomDetailActions.EventDisplayed) {
|
||||
displayedEventsObservable.accept(action)
|
||||
//We need to update this with the related m.replace also (to move read receipt)
|
||||
action.event.annotations?.editSummary?.sourceEvents?.forEach {
|
||||
room.getTimeLineEvent(it)?.let {event ->
|
||||
displayedEventsObservable.accept(RoomDetailActions.EventDisplayed(event))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleLoadMore(action: RoomDetailActions.LoadMore) {
|
||||
|
|
Loading…
Reference in a new issue