mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-08-03 03:26:57 -04:00
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”.
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.