Skip to content

Commit

Permalink
expose the installation ids (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer authored Mar 28, 2024
1 parent e43f49f commit d9b67d8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bindings_ffi/src/mls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ impl FfiXmtpClient {

Ok(results)
}

pub async fn installation_ids(&self) -> Result<Vec<Vec<u8>>, 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")]
Expand Down

0 comments on commit d9b67d8

Please sign in to comment.