diff --git a/crates/matrix-sdk-ui/src/timeline/controller/decryption_retry_task.rs b/crates/matrix-sdk-ui/src/timeline/controller/decryption_retry_task.rs index 83102aafb..5feed4ae8 100644 --- a/crates/matrix-sdk-ui/src/timeline/controller/decryption_retry_task.rs +++ b/crates/matrix-sdk-ui/src/timeline/controller/decryption_retry_task.rs @@ -108,7 +108,7 @@ pub(in crate::timeline) async fn spawn_crypto_tasks( CryptoDropHandles { _redecryption_report_join_handle: redecryption_report_join_handle, _encryption_changes_handle: task_monitor - .spawn_background_task("timeline::encryption_state_changes", async move { + .spawn_background_job("timeline::encryption_state_changes", async move { controller.handle_encryption_state_changes().await }) .abort_on_drop(), diff --git a/crates/matrix-sdk-ui/src/unable_to_decrypt_hook.rs b/crates/matrix-sdk-ui/src/unable_to_decrypt_hook.rs index 1268263b2..5122d7298 100644 --- a/crates/matrix-sdk-ui/src/unable_to_decrypt_hook.rs +++ b/crates/matrix-sdk-ui/src/unable_to_decrypt_hook.rs @@ -292,7 +292,7 @@ impl UtdHookManager { // Spawn a task that will wait for the given delay, and maybe call the parent // hook then. - let handle = self.client.task_monitor().spawn_background_task("utd_hook", async move { + let handle = self.client.task_monitor().spawn_background_job("utd_hook", async move { // Wait for the given delay. sleep(max_delay).await;