mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-26 09:33:14 +01:00
Fix / move read receipt on m.replace events
This commit is contained in:
parent
ecccb80e04
commit
adbfde94d6
@ -350,6 +350,12 @@ class RoomDetailViewModel(initialState: RoomDetailViewState,
|
|||||||
|
|
||||||
private fun handleEventDisplayed(action: RoomDetailActions.EventDisplayed) {
|
private fun handleEventDisplayed(action: RoomDetailActions.EventDisplayed) {
|
||||||
displayedEventsObservable.accept(action)
|
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) {
|
private fun handleLoadMore(action: RoomDetailActions.LoadMore) {
|
||||||
|
Loading…
Reference in New Issue
Block a user