Merge branch 'soru/fix-history-state-events' into 'main'
fix: Sort state events of history requests correctly See merge request famedly/famedlysdk!586
This commit is contained in:
commit
c69a8ac927
|
|
@ -1015,10 +1015,9 @@ class Client extends MatrixApi {
|
||||||
if (room is JoinedRoomUpdate) {
|
if (room is JoinedRoomUpdate) {
|
||||||
if (room.state?.isNotEmpty ?? false) {
|
if (room.state?.isNotEmpty ?? false) {
|
||||||
// TODO: This method seems to be comperatively slow for some updates
|
// TODO: This method seems to be comperatively slow for some updates
|
||||||
await _handleRoomEvents(
|
await _handleRoomEvents(id,
|
||||||
id,
|
room.state.map((i) => i.toJson()).toList(), EventUpdateType.state,
|
||||||
room.state.map((i) => i.toJson()).toList(),
|
sortAtTheEnd: sortAtTheEnd);
|
||||||
EventUpdateType.state);
|
|
||||||
handledEvents = true;
|
handledEvents = true;
|
||||||
}
|
}
|
||||||
if (room.timeline?.events?.isNotEmpty ?? false) {
|
if (room.timeline?.events?.isNotEmpty ?? false) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue