Honor de.sorunome.msc2409.push_ephemeral flag in appservice handler (#19928)

This commit is contained in:
Wessel
2026-07-13 16:06:17 +00:00
committed by GitHub
parent 292bbb8f30
commit c93d5230c0
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -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.
+4 -1
View File
@@ -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