Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Redacting MSC2716 related events #10521

Closed
MadLittleMods opened this issue Aug 4, 2021 · 2 comments · Fixed by #10538
Closed

Redacting MSC2716 related events #10521

MadLittleMods opened this issue Aug 4, 2021 · 2 comments · Fixed by #10538
Assignees
Labels
T-Other Questions, user support, anything else.

Comments

@MadLittleMods
Copy link
Contributor

MadLittleMods commented Aug 4, 2021

What should happen when you redact MSC2716 related events? @erikjohnston does this look sane?

  • "insertion" event
    • Undo the steps we take in _handle_insertion_event
    • Remove from the insertion_events table
    • Remove all of the insertion_event_edges
  • "chunk" event
  • "marker" event
    • not merged yet, see Add support for MSC2716 marker events (federation) #10498
    • Undo the steps we take in _handle_marker_event
    • We backfill the insertion event in _handle_marker_event but I don't think we need to undo that. If they want to redact the insertion event, they can do that separately. We can just redact the "marker" event as normal with no special logic.

A more general question but what happens when you redact a redaction? Does it cancel the event being redacted?

@erikjohnston erikjohnston added the T-Other Questions, user support, anything else. label Aug 4, 2021
@erikjohnston
Copy link
Member

I think we should probably add those fields to be included in the redacted event, so that the structure of the imported history isn't lost. The idea of redaction is that you can use it to strip out fields from events without affecting anything at the protocol level.

A more general question but what happens when you redact a redaction? Does it cancel the event being redacted?

I don't think anything happens, as it won't strip out the redacts field

@MadLittleMods
Copy link
Contributor Author

The idea of redaction is that you can use it to strip out fields from events without affecting anything at the protocol level.

Interesting. Didn't realize that was the goal of redacting 👨‍🌾

Created #10538 to maintain the structural fields around 👍

MadLittleMods added a commit that referenced this issue Aug 10, 2021
… event structure intact (MSC2716) (#10538)

* Keep event fields that maintain the historical event structure intact

Fix #10521

* Add changelog

* Bump room version

* Better changelog text

* Fix up room version after develop merge
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Other Questions, user support, anything else.
Projects
None yet
2 participants