From 10894221ff3dc4af701d12f69ff6d18de526c394 Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Mon, 28 Oct 2024 12:13:10 +0000 Subject: [PATCH] Rename MSC2409 to-dev -> MSC4203 internally --- synapse/config/experimental.py | 2 +- synapse/handlers/appservice.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/synapse/config/experimental.py b/synapse/config/experimental.py index 2c1daea213..39041a2790 100644 --- a/synapse/config/experimental.py +++ b/synapse/config/experimental.py @@ -299,7 +299,7 @@ class ExperimentalConfig(Config): # key not matching the MSC. # Presence, typing and read receipt EDUs are already sent to application services that # have opted in to receive them. If enabled, this adds to-device messages to that list. - self.msc2409_to_device_messages_enabled: bool = experimental.get( + self.msc4203_to_device_messages_enabled: bool = experimental.get( "msc2409_to_device_messages_enabled", False ) diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py index 143d19e6c5..d7a7265bfa 100644 --- a/synapse/handlers/appservice.py +++ b/synapse/handlers/appservice.py @@ -81,8 +81,8 @@ class ApplicationServicesHandler: self.clock = hs.get_clock() self.notify_appservices = hs.config.worker.should_notify_appservices self.event_sources = hs.get_event_sources() - self._msc2409_to_device_messages_enabled = ( - hs.config.experimental.msc2409_to_device_messages_enabled + self._msc4203_to_device_messages_enabled = ( + hs.config.experimental.msc4203_to_device_messages_enabled ) self._msc3202_transaction_extensions_enabled = ( hs.config.experimental.msc3202_transaction_extensions @@ -269,7 +269,7 @@ class ApplicationServicesHandler: # Ignore to-device messages if the feature flag is not enabled if ( stream_key == StreamKeyType.TO_DEVICE - and not self._msc2409_to_device_messages_enabled + and not self._msc4203_to_device_messages_enabled ): return