diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 4b388425e..a7d3dbfbe 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -446,7 +446,7 @@ PODS: - GenericJSON (~> 2.0) - Logging (~> 1.0.0) - secp256k1.swift (~> 0.1) - - XMTP (0.8.13): + - XMTP (0.8.14): - Connect-Swift (= 0.3.0) - GzipSwift - LibXMTP (= 0.4.2-beta3) @@ -455,7 +455,7 @@ PODS: - ExpoModulesCore - MessagePacker - secp256k1.swift - - XMTP (= 0.8.13) + - XMTP (= 0.8.14) - Yoga (1.14.0) DEPENDENCIES: @@ -756,8 +756,8 @@ SPEC CHECKSUMS: secp256k1.swift: a7e7a214f6db6ce5db32cc6b2b45e5c4dd633634 SwiftProtobuf: b02b5075dcf60c9f5f403000b3b0c202a11b6ae1 web3.swift: 2263d1e12e121b2c42ffb63a5a7beb1acaf33959 - XMTP: 0424f5521008373eaa0a8cdba9d4244ba13700f2 - XMTPReactNative: cba9ca301d6ae82f649702e5befb3551f98d679f + XMTP: f716708390140ef0542425898888e2346e04174e + XMTPReactNative: 145687cf515815fcc26f89e4347c44814708981b Yoga: e71803b4c1fff832ccf9b92541e00f9b873119b9 PODFILE CHECKSUM: 95d6ace79946933ecf80684613842ee553dd76a2 diff --git a/example/src/tests/groupTests.ts b/example/src/tests/groupTests.ts index 02105f11f..dada7fe1b 100644 --- a/example/src/tests/groupTests.ts +++ b/example/src/tests/groupTests.ts @@ -28,8 +28,7 @@ test('can make a MLS V3 client', async () => { }) test('can delete a local database', async () => { - // eslint-disable-next-line @typescript-eslint/no-unused-vars - const client = await Client.createRandom({ + let client = await Client.createRandom({ env: 'local', appVersion: 'Testing/0.0.0', enableAlphaMls: true, @@ -49,6 +48,11 @@ test('can delete a local database', async () => { ) await client.deleteLocalDatabase() + client = await Client.createRandom({ + env: 'local', + appVersion: 'Testing/0.0.0', + enableAlphaMls: true, + }) await client.conversations.syncGroups() assert( (await client.conversations.listGroups()).length === 0, diff --git a/ios/XMTPModule.swift b/ios/XMTPModule.swift index ab8391cae..68dc71c63 100644 --- a/ios/XMTPModule.swift +++ b/ios/XMTPModule.swift @@ -79,7 +79,7 @@ public class XMTPModule: Module { guard let client = await clientsManager.getClient(key: clientAddress) else { throw Error.noClient } - client.deleteLocalDatabase() + try client.deleteLocalDatabase() } // diff --git a/ios/XMTPReactNative.podspec b/ios/XMTPReactNative.podspec index f666457ac..9bfc7c288 100644 --- a/ios/XMTPReactNative.podspec +++ b/ios/XMTPReactNative.podspec @@ -26,5 +26,5 @@ Pod::Spec.new do |s| s.source_files = "**/*.{h,m,swift}" s.dependency 'secp256k1.swift' s.dependency "MessagePacker" - s.dependency "XMTP", "= 0.8.13" + s.dependency "XMTP", "= 0.8.14" end