From 213a361c53d03344e57a6fecc928517e1c3224c3 Mon Sep 17 00:00:00 2001 From: Ginger Date: Mon, 27 Oct 2025 17:25:21 -0400 Subject: [PATCH] fix: Set `limited` to `true` for newly joined rooms again --- src/api/client/sync/v3/joined.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/client/sync/v3/joined.rs b/src/api/client/sync/v3/joined.rs index 8a790229..225e02a2 100644 --- a/src/api/client/sync/v3/joined.rs +++ b/src/api/client/sync/v3/joined.rs @@ -432,7 +432,8 @@ pub(super) async fn load_joined_room( }, unread_notifications: UnreadNotificationsCount { highlight_count, notification_count }, timeline: Timeline { - limited: timeline.limited, + // mirror Synapse behavior by setting `limited` if the user joined since the last sync + limited: timeline.limited || joined_since_last_sync, prev_batch: prev_batch.as_ref().map(ToString::to_string), events: room_events, },