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

event cache: delete old events according to the room retention policy

Open
#4,875 0 comments 0 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

Followup from #3280. If a room has a room retention policy, we must abide by it locally, and remove older events.

https://github.com/matrix-org/matrix-spec-proposals/blob/matthew/msc1763/proposals/1763-configurable-retention-periods.md

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 reading the context in issue #3280 and the linked MSC1763 retention-period proposal, then locate the event cache implementation in the matrix-rust-sdk. Determine how each room's retention policy is represented and where cached events are removed. Done means older local events are deleted according to the room's policy, with relevant tests covering retention behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.