Files
matrix-rust-sdk/crates/matrix-sdk-common
Ivan Enderlin 208c9331c8 feat(sdk): Annotations and redactions events are stored in their associated threads.
This patch stores all events with a relation to an in-thread event,
plus the `m.room.redaction` events targeting in-thread events, in their
respective thread cache.

This patch also introduces a new `extract_redaction_target` helper, that
is used in the `maybe_apply_new_redaction` methods of the room and the
thread cache.

The aggregator for the threads is updated to aggregate the
`m.room.redaction` event, and annotation relation type. A refactoring
is done to use a `match` over `RelationType`, instead of using multiple
`extract_*` helper, which clarifies the code I believe. A limitation has
been found and a `TODO` has been added to keep the commits “small”.
2026-06-18 10:27:13 +02:00
..

Common types that are used in the different matrix-sdk layers.

NOTE: These are common dependencies for the different matrix-sdk layers, you're probably interested in the main matrix-sdk crate.