feat: Add support for state_after

This commit is contained in:
Ginger committed 2026-06-16 23:41:51 -04:00
1 parent 7c42f6075b
commit 523016a42b
5 files changed
+89 -152

No files matched your search

+4
View File
@@ -111,6 +111,9 @@ struct SyncContext<'a> {
/// The sync filter, which the client uses to specify what data should be
/// included in the sync response.
filter: &'a FilterDefinition,
/// Whether the state at the end of the timeline should be used when
/// calculating state diffs for sync.
use_state_after: bool,
}
impl<'a> SyncContext<'a> {
@@ -264,6 +267,7 @@ pub(crate) async fn build_sync_events(
current_count,
full_state,
filter: &filter,
use_state_after: body.use_state_after,
};
let joined_rooms = services