Skip to content

Commit

Permalink
verify not using multiple client objects when removing
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Nov 19, 2024
1 parent bdc319e commit 01e70d0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 01e70d0

Please sign in to comment.