matrix-org / matrix-org/matrix-rust-sdk

Correctly handle redacted state events

Open
#607 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
2.3k
Forks
500
Avg merge
1d 16h
Merged PRs (30d)
106

Description

We currently filter out redacted state events in some places and only handle unredacted ones. This is incorrect: Redacted state events still affect the room state.

Left to do after #627:

* [ ] Review remaining uses of `FooEvent::Original`
* [ ] Add fetching of events by ID to the state store, then apply incoming redactions to stored events
* [ ] State events
* [ ] Timeline events

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the remaining uses of FooEvent::Original and the state store entry points. Trace how events are fetched and how incoming redactions are applied, covering both state and timeline events. Done means redacted state events still affect room state and both listed event categories are handled.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.