From d9b67d8bbb2968437b944bcf9747b6d2a8c39992 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Thu, 28 Mar 2024 09:51:13 -0700 Subject: [PATCH] expose the installation ids (#601) --- bindings_ffi/src/mls.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bindings_ffi/src/mls.rs b/bindings_ffi/src/mls.rs index e50342c3a..d40660d58 100644 --- a/bindings_ffi/src/mls.rs +++ b/bindings_ffi/src/mls.rs @@ -137,6 +137,13 @@ impl FfiXmtpClient { Ok(results) } + + pub async fn installation_ids(&self) -> Result>, GenericError> { + let address = self.inner_client.account_address(); + let installations = self.inner_client.get_all_active_installation_ids(vec![address]).await?; + + Ok(installations) + } } #[uniffi::export(async_runtime = "tokio")]