mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-18 17:10:43 +03:00
Rename MSC2409 to-dev -> MSC4203 internally
This commit is contained in:
parent
01d73ac009
commit
10894221ff
2 changed files with 4 additions and 4 deletions
|
@ -299,7 +299,7 @@ class ExperimentalConfig(Config):
|
||||||
# key not matching the MSC.
|
# key not matching the MSC.
|
||||||
# Presence, typing and read receipt EDUs are already sent to application services that
|
# 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.
|
# 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
|
"msc2409_to_device_messages_enabled", False
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -81,8 +81,8 @@ class ApplicationServicesHandler:
|
||||||
self.clock = hs.get_clock()
|
self.clock = hs.get_clock()
|
||||||
self.notify_appservices = hs.config.worker.should_notify_appservices
|
self.notify_appservices = hs.config.worker.should_notify_appservices
|
||||||
self.event_sources = hs.get_event_sources()
|
self.event_sources = hs.get_event_sources()
|
||||||
self._msc2409_to_device_messages_enabled = (
|
self._msc4203_to_device_messages_enabled = (
|
||||||
hs.config.experimental.msc2409_to_device_messages_enabled
|
hs.config.experimental.msc4203_to_device_messages_enabled
|
||||||
)
|
)
|
||||||
self._msc3202_transaction_extensions_enabled = (
|
self._msc3202_transaction_extensions_enabled = (
|
||||||
hs.config.experimental.msc3202_transaction_extensions
|
hs.config.experimental.msc3202_transaction_extensions
|
||||||
|
@ -269,7 +269,7 @@ class ApplicationServicesHandler:
|
||||||
# Ignore to-device messages if the feature flag is not enabled
|
# Ignore to-device messages if the feature flag is not enabled
|
||||||
if (
|
if (
|
||||||
stream_key == StreamKeyType.TO_DEVICE
|
stream_key == StreamKeyType.TO_DEVICE
|
||||||
and not self._msc2409_to_device_messages_enabled
|
and not self._msc4203_to_device_messages_enabled
|
||||||
):
|
):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue