Skip to content

If Riot is unaware of the event for a server-side aggregated edit, it edit doesn't get undone upon redacting #10290

@bwindels

Description

@bwindels

As of matrix-org/matrix-js-sdk@5d928f0, riot will ignore edit events earlier than the server-side aggregated (SSA) edit, as it should, since the client might not be aware of all edits.

When that SSA edit gets redacted, riot receives the redacting event through sync, but it doesn't have the edit event to redact. It is only aware of the edit because it was SSA onto the original event, the edit event hasn't been received. If the redacted event is not in the part of the timeline Riot is aware of, the redaction doesn't have any effect, and the unsigned/m.relations/m.replace/origin_server_ts on the original event is kept in place, which keeps setting an lower limit for any prior unredacted edits to apply to the original event during local aggregation, causing them to be ignored.

So the aggregation of the original edited event isn't adjusted and the content stays what it was. Clearing the cache and reloading will fix the issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions