From 4bd94a23bf9765de6b1e9e54587ec47306b72f14 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 17 Oct 2024 22:57:00 +0100 Subject: [PATCH] fixup! refactor(timeline): retry_event_decryption: re-use utd cause --- crates/matrix-sdk-ui/src/timeline/controller/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/matrix-sdk-ui/src/timeline/controller/mod.rs b/crates/matrix-sdk-ui/src/timeline/controller/mod.rs index 1e8adca277b..3a37135059e 100644 --- a/crates/matrix-sdk-ui/src/timeline/controller/mod.rs +++ b/crates/matrix-sdk-ui/src/timeline/controller/mod.rs @@ -989,8 +989,6 @@ impl TimelineController

{ decryptor: impl Decryptor, session_ids: Option>, ) { - use matrix_sdk::crypto::types::events::UtdCause; - use super::EncryptedMessage; let mut state = self.state.clone().write_owned().await; @@ -1072,8 +1070,7 @@ impl TimelineController

{ // 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)