mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-08-02 10:57:33 -04:00
get_most_recent_edit indexed the latest m.replace regardless of whether it was a valid replacement, letting any user rewrite another user's indexed message. Validate edits with check_validity_of_replacement_events (matching sender, type, etc.), as the timeline does, before indexing them.