From 3180924c5a3741c24b03d23916dfbc4e3f469c3c Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Tue, 7 Jul 2026 22:48:34 +0300 Subject: [PATCH] Update Rust side versions endpoint Since https://github.com/element-hq/synapse/commit/c63d77a79d7157f26f849684520ba9e99f4d07c0 moved things --- rust/src/config/mod.rs | 1 + rust/src/handlers/versions.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/rust/src/config/mod.rs b/rust/src/config/mod.rs index ef9ecb067c..b59d61e5f9 100644 --- a/rust/src/config/mod.rs +++ b/rust/src/config/mod.rs @@ -48,6 +48,7 @@ pub struct AuthConfig { #[derive(FromPyObject, Clone)] pub struct ServerConfig { pub max_event_delay_ms: Option, + pub include_profile_updates_in_sync: bool, } #[derive(FromPyObject, Clone)] diff --git a/rust/src/handlers/versions.rs b/rust/src/handlers/versions.rs index db8bca82d6..5bf36fa4e9 100644 --- a/rust/src/handlers/versions.rs +++ b/rust/src/handlers/versions.rs @@ -257,6 +257,9 @@ pub struct UnstableFeatureMap { /// MSC4380: Invite blocking #[serde(rename = "org.matrix.msc4380.stable")] msc4380: bool, + /// MSC4429: Profile updates for legacy /sync. + #[serde(rename = "org.matrix.msc4429")] + msc4429: bool, /// MSC4445: Sync timeline order #[serde(rename = "org.matrix.msc4445.initial_sync_timeline_topological_ordering")] msc4445_initial_sync_timeline_topological_ordering: bool, @@ -316,6 +319,7 @@ pub fn synapse_config_to_global_unstable_feature_map( msc4169: config.experimental.msc4169_enabled, msc4354: config.experimental.msc4354_enabled, msc4380: true, + msc4429: config.server.include_profile_updates_in_sync, msc4445_initial_sync_timeline_topological_ordering: true, msc4491_enabled: config.experimental.msc4491_enabled, msc4143_enabled: config.experimental.msc4143_enabled,