Skip to content

Commit

Permalink
fixup! refactor(timeline): retry_event_decryption: re-use utd cause
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Oct 17, 2024
1 parent 61b7d76 commit 4bd94a2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/matrix-sdk-ui/src/timeline/controller/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -989,8 +989,6 @@ impl<P: RoomDataProvider> TimelineController<P> {
decryptor: impl Decryptor,
session_ids: Option<BTreeSet<String>>,
) {
use matrix_sdk::crypto::types::events::UtdCause;

use super::EncryptedMessage;

let mut state = self.state.clone().write_owned().await;
Expand Down Expand Up @@ -1072,8 +1070,7 @@ impl<P: RoomDataProvider> TimelineController<P> {

// Notify observers that we managed to eventually decrypt an event.
if let Some(hook) = unable_to_decrypt_hook {
hook.on_late_decrypt(&remote_event.event_id, utd_cause.clone())
.await;
hook.on_late_decrypt(&remote_event.event_id, *utd_cause).await;
}

Some(event)
Expand Down

0 comments on commit 4bd94a2

Please sign in to comment.