mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-29 01:18:30 +00:00
Honor de.sorunome.msc2409.push_ephemeral flag in appservice handler (#19928)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Fix a regression where application services that opted into ephemeral events using the legacy `de.sorunome.msc2409.push_ephemeral` registration flag stopped receiving ephemeral events (including to-device messages used for encryption). Introduced in v1.156.0.
|
||||
@@ -313,7 +313,10 @@ class ApplicationServicesHandler:
|
||||
StreamKeyType.PRESENCE,
|
||||
StreamKeyType.TO_DEVICE,
|
||||
)
|
||||
and service.supports_ephemeral
|
||||
# Honour both the stable `receive_ephemeral` registration flag and the
|
||||
# legacy `de.sorunome.msc2409.push_ephemeral` one, matching the
|
||||
# transaction body built in `ApplicationServiceApi.push_bulk`.
|
||||
and (service.supports_ephemeral or service.supports_unstable_ephemeral)
|
||||
)
|
||||
or (
|
||||
stream_key == StreamKeyType.DEVICE_LIST
|
||||
|
||||
Reference in New Issue
Block a user