Skip to content

Commit 8a313df

Browse files
committed
ffi: Expose Encryption::wait_for_e2ee_initialization_tasks
1 parent 7c68096 commit 8a313df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bindings/matrix-sdk-ffi/src/encryption.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,4 +367,10 @@ impl Encryption {
367367
}
368368
})))
369369
}
370+
371+
/// Waits for end-to-end encryption initialization tasks to finish, if any
372+
/// was running in the background.
373+
pub async fn wait_for_e2ee_initialization_tasks(&self) {
374+
self.inner.wait_for_e2ee_initialization_tasks().await;
375+
}
370376
}

0 commit comments

Comments
 (0)