Stabilize support for sending ephemeral events to application services, as per MSC2409#19758
Stabilize support for sending ephemeral events to application services, as per MSC2409#19758jason-famedly wants to merge 5 commits intoelement-hq:developfrom
Conversation
| "ephemeral": ephemeral, | ||
| # TODO: Update to stable prefixes once MSC4203 completes FCP merge. | ||
| # Previously, this was part of MSC2409 which is why it has the | ||
| # mismatched unstable identifier |
There was a problem hiding this comment.
I'm not sure how we handled that in the past, but I feel like we should continue sending the unstable identifier to avoid breaking application services which only support the unstable prefix?
There was a problem hiding this comment.
Hmmm. That is fair. Do you think using the change in the configuration setting should be the decider on which identifier should be sent? So that if the config says receive_ephemeral it would provide the stable key, but if it was de.sorunome.msc2409.push_ephemeral it would use the older unstable key? Or do you suppose just sending both each time?
There was a problem hiding this comment.
Gave the first option a try in 5c76d3f.
As a note: the existing code did not do the optional exclusion of the key if there was no relevant data. Would you be interested in that here, or push it to later?
…ugh so the unstable identifier can exist for backwards compatibility
Part of #18118
MSC2409 was merged into the spec on Oct 28, 2024 and is part of Matrix Spec 1.13
This adds the stable identifiers for MSC2409 while maintaining the existing unstable identifier for backwards compatibility. The existing
to_deviceidentifiers borrowed from MSC2409 for MSC4203 are also maintained.(Includes one drive-by removal of a FIXME comment that was no longer needed after May 16, 2022)
Pull Request Checklist
EventStoretoEventWorkerStore.".code blocks.