fix: Sort state events of history requests correctly
This commit is contained in:
parent
1fff05d663
commit
c6f718adcc
|
|
@ -1015,10 +1015,9 @@ class Client extends MatrixApi {
|
|||
if (room is JoinedRoomUpdate) {
|
||||
if (room.state?.isNotEmpty ?? false) {
|
||||
// TODO: This method seems to be comperatively slow for some updates
|
||||
await _handleRoomEvents(
|
||||
id,
|
||||
room.state.map((i) => i.toJson()).toList(),
|
||||
EventUpdateType.state);
|
||||
await _handleRoomEvents(id,
|
||||
room.state.map((i) => i.toJson()).toList(), EventUpdateType.state,
|
||||
sortAtTheEnd: sortAtTheEnd);
|
||||
handledEvents = true;
|
||||
}
|
||||
if (room.timeline?.events?.isNotEmpty ?? false) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue