From 01e70d05c32ce2ebf52f4b0450e7980f07d96127 Mon Sep 17 00:00:00 2001 From: cameronvoell Date: Tue, 19 Nov 2024 10:09:05 -0800 Subject: [PATCH] verify not using multiple client objects when removing --- .../src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt b/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt index 6d980b01..15fe5fe7 100644 --- a/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt +++ b/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt @@ -728,6 +728,8 @@ class XMTPModule : Module() { withContext(Dispatchers.IO) { logV("removeGroupMembers") val client = clients[inboxId] ?: throw XMTPException("No client") + val clientObjectHash = System.identityHashCode(client) + logV("hashcode of client object in memory performing removeGroupMembers: " + clientObjectHash) val group = client.findGroup(groupId) ?: throw XMTPException("no group found for $groupId") group.removeMembers(peerAddresses)