-
-
Notifications
You must be signed in to change notification settings - Fork 152
Inconsistency for edits to encrypted events #1299
Copy link
Copy link
Closed
Labels
clarificationAn area where the expected behaviour is understood, but the spec could do with being more explicitAn area where the expected behaviour is understood, but the spec could do with being more explicit
Description
Activity
Metadata
Metadata
Assignees
Labels
clarificationAn area where the expected behaviour is understood, but the spec could do with being more explicitAn area where the expected behaviour is understood, but the spec could do with being more explicit
Link to problem area:
https://spec.matrix.org/v1.4/client-server-api/#event-replacements
Issue
https://spec.matrix.org/v1.4/client-server-api/#editing-encrypted-events says:
We then have https://spec.matrix.org/v1.4/client-server-api/#server-side-replacement-of-content, which says:
Of course, the server doesn't have access to
m.new_content, so that would suggest replacing the original content with... nothing?Arguably, Synapse shouldn't even consider the edit as valid, because https://spec.matrix.org/v1.4/client-server-api/#validity-of-replacement-events says:
However, it's important that edits to encrypted events do get aggregated into the original event, so it's not as simple as just excluding them.
See also matrix-org/synapse#14252 (comment).