From 945d20e8492471663bc4b7001ed157e7935aa636 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Mon, 19 Oct 2026 17:28:16 +0000 Subject: [PATCH] fixup! Move the sticky events sliding sync extension to the global `pos` and MSC4508 scoping Cosmetic, comments --- synapse/handlers/sliding_sync/extensions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/synapse/handlers/sliding_sync/extensions.py b/synapse/handlers/sliding_sync/extensions.py index ed966e3539..9cbc33c3fd 100644 --- a/synapse/handlers/sliding_sync/extensions.py +++ b/synapse/handlers/sliding_sync/extensions.py @@ -123,9 +123,12 @@ class SlidingSyncExtensionHandler: """ if sync_config.extensions is None: + # If no extensions are enabled, shortcut out. + if self._enable_sticky_events: # The sticky events extension tracks per-room state even while it - # isn't enabled, so that re-enabling it doesn't miss anything. + # isn't enabled on the request, so that re-enabling it doesn't miss anything. + # (But only if the MSC4354 experimental feature is enabled) await self._record_sticky_events_rooms_out_of_scope( previous_connection_state=previous_connection_state, new_connection_state=new_connection_state,