diff --git a/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt b/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt index b85064d51..e81cde291 100644 --- a/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt +++ b/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt @@ -293,7 +293,7 @@ class XMTPModule : Module() { withContext(Dispatchers.IO) { val client = clients[inboxId] ?: throw XMTPException("No client") val inboxState = client.inboxState(refreshFromNetwork) - InboxStateWrapper.encodeToObj(inboxState) + InboxStateWrapper.encode(inboxState) } } diff --git a/example/src/tests/groupTests.ts b/example/src/tests/groupTests.ts index 0b429203a..d086fd1f9 100644 --- a/example/src/tests/groupTests.ts +++ b/example/src/tests/groupTests.ts @@ -79,7 +79,6 @@ test('can revoke all other installations', async () => { enableV3: true, dbEncryptionKey: keyBytes, }) - await alix.dropLocalDatabaseConnection() await alix.deleteLocalDatabase() const alix2 = await Client.create(alixWallet, { @@ -2116,7 +2115,6 @@ test('can revoke all other installations', async () => { // `client 2 should see 2 members` // ) -// await client2.dropLocalDatabaseConnection() // await client2.deleteLocalDatabase() // // Recreating a client with wallet 2 (new installation!)