Skip to content

Commit

Permalink
fix(sdk): maybe_apply_new_redaction updates in-store events.
Browse files Browse the repository at this point in the history
This patch updates `maybe_apply_new_redaction` so that it is able to
update/redact an event found in the store.
  • Loading branch information
Hywan committed Mar 3, 2025
1 parent 954673f commit 19127b7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/matrix-sdk/src/event_cache/room/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,11 @@ mod private {
.expect("should have been a valid position of an item");
}
EventLocation::InStore => {
todo!()
self.send_updates_to_store(vec![Update::ReplaceItem {
at: position,
item: copy,
}])
.await?;
}
}
}
Expand Down

0 comments on commit 19127b7

Please sign in to comment.