fix: Don't apply get_missing_events limit to earliest_events

This commit is contained in:
Erwan Leboucher authored and Ellis Git committed 2026-11-11 21:51:52 +00:00
1 parent 4bd09a6d88
commit 2c605151eb
2 files changed
+1 -3

No files matched your search

@@ -0,0 +1 @@
Fixed `/get_missing_events` rejecting requests with more `earliest_events` than the `limit`. Contributed by @eleboucher.
-3
View File
@@ -47,9 +47,6 @@ pub(crate) async fn get_missing_events_route(
if body.latest_events.len() > limit {
return Err!(Request(InvalidParam("Too many latest_events")));
}
if body.earliest_events.len() > limit {
return Err!(Request(InvalidParam("Too many earliest_events")));
}
let room_version = services.rooms.state.get_room_version(&body.room_id).await?;