Skip to content

Commit 1f524f2

Browse files
authored
Merge pull request #3327 from matrix-org/andybalaam/expose-wait-e2ee
ffi: Expose Encryption::wait_for_e2ee_initialization_tasks
2 parents a3e6a07 + 8a313df commit 1f524f2

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)