From 1413c38f72aa092196f224b7e453b729b0b67af7 Mon Sep 17 00:00:00 2001 From: Dakota Brink <779390+codabrink@users.noreply.github.com> Date: Tue, 26 Nov 2024 10:22:58 -0500 Subject: [PATCH] use a Uint8Array instead of a vec (#1341) --- bindings_node/package.json | 2 +- bindings_node/src/client.rs | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bindings_node/package.json b/bindings_node/package.json index 0ee3d5940..a1de4326c 100644 --- a/bindings_node/package.json +++ b/bindings_node/package.json @@ -1,6 +1,6 @@ { "name": "@xmtp/node-bindings", - "version": "0.0.23", + "version": "0.0.24", "repository": { "type": "git", "url": "git+https://git@github.com/xmtp/libxmtp.git", diff --git a/bindings_node/src/client.rs b/bindings_node/src/client.rs index 83022d492..32740d90c 100644 --- a/bindings_node/src/client.rs +++ b/bindings_node/src/client.rs @@ -313,10 +313,13 @@ impl Client { pub async fn is_installation_authorized( &self, inbox_id: String, - installation: Vec, + installation_id: Uint8Array, ) -> Result { self - .is_member_of_association_state(&inbox_id, &MemberIdentifier::Installation(installation)) + .is_member_of_association_state( + &inbox_id, + &MemberIdentifier::Installation(installation_id.to_vec()), + ) .await }