diff --git a/lib/src/room.dart b/lib/src/room.dart index 505c3f6d..3e243f0a 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -1107,8 +1107,8 @@ class Room { } final resp = await client.getRoomEvents( id, - prev_batch, direction, + from: prev_batch, limit: historyCount, filter: jsonEncode(StateFilter(lazyLoadMembers: true).toJson()), ); diff --git a/lib/src/timeline.dart b/lib/src/timeline.dart index 1d53268b..55813c26 100644 --- a/lib/src/timeline.dart +++ b/lib/src/timeline.dart @@ -178,8 +178,8 @@ class Timeline { direction = Direction.b}) async { final resp = await room.client.getRoomEvents( room.id, - direction == Direction.b ? chunk.prevBatch : chunk.nextBatch, direction, + from: direction == Direction.b ? chunk.prevBatch : chunk.nextBatch, limit: historyCount, filter: jsonEncode(StateFilter(lazyLoadMembers: true).toJson()), ); @@ -573,8 +573,8 @@ class Timeline { try { final resp = await room.client.getRoomEvents( room.id, - prevBatch, Direction.b, + from: prevBatch, limit: requestHistoryCount, filter: jsonEncode(StateFilter(lazyLoadMembers: true).toJson()), ); diff --git a/pubspec.yaml b/pubspec.yaml index 480388a2..2ba2cfba 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -18,7 +18,7 @@ dependencies: crypto: ^3.0.0 base58check: ^2.0.0 olm: ^2.0.0 - matrix_api_lite: ^1.0.0 + matrix_api_lite: ^1.1.0 hive: ^2.2.1 image: ^3.1.1 ffi: ^1.0.0