mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
fix: Set limited to true for newly joined rooms again
This commit is contained in:
@@ -432,7 +432,8 @@ pub(super) async fn load_joined_room(
|
|||||||
},
|
},
|
||||||
unread_notifications: UnreadNotificationsCount { highlight_count, notification_count },
|
unread_notifications: UnreadNotificationsCount { highlight_count, notification_count },
|
||||||
timeline: Timeline {
|
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),
|
prev_batch: prev_batch.as_ref().map(ToString::to_string),
|
||||||
events: room_events,
|
events: room_events,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user