Add replaces_state
to state events in the /sync response
#274
Labels
A-Client-Server
Issues affecting the CS API
enhancement
A suggestion for a relatively simple improvement to the protocol
In case an event has a
prev_content
, it would be useful to know also the id of the event where thisprev_content
comes from.One use case is the redaction of a state event that was in the past like in:
The
prev_content
of C, that contains redacted data of B, must be pruned to avoid leaked data as described at element-hq/element-ios#443.Knowing the event_id of the state event which C replaces, the client will be able to locally prune C without requiring any request to the homeserver.
To solve this, Riot-iOS used to make a room initial sync but is was an expensive process server side (element-hq/element-ios#1823).
The text was updated successfully, but these errors were encountered: