From 8a313df6a44fcf86a7b6814a3fc775149c715465 Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Fri, 12 Apr 2024 09:31:47 +0100 Subject: [PATCH] ffi: Expose Encryption::wait_for_e2ee_initialization_tasks --- bindings/matrix-sdk-ffi/src/encryption.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bindings/matrix-sdk-ffi/src/encryption.rs b/bindings/matrix-sdk-ffi/src/encryption.rs index 6fd1ec59f..4b321dabc 100644 --- a/bindings/matrix-sdk-ffi/src/encryption.rs +++ b/bindings/matrix-sdk-ffi/src/encryption.rs @@ -367,4 +367,10 @@ impl Encryption { } }))) } + + /// Waits for end-to-end encryption initialization tasks to finish, if any + /// was running in the background. + pub async fn wait_for_e2ee_initialization_tasks(&self) { + self.inner.wait_for_e2ee_initialization_tasks().await; + } }