diff --git a/ios/XMTPModule.swift b/ios/XMTPModule.swift index f6e244678..d54d9c050 100644 --- a/ios/XMTPModule.swift +++ b/ios/XMTPModule.swift @@ -181,6 +181,14 @@ public class XMTPModule: Module { return try await client.canMessage(peerAddress) } + + AsyncFunction("canGroupMessage") { (clientAddress: String, peerAddresses: [String]) -> Bool in + guard let client = await clientsManager.getClient(key: clientAddress) else { + throw Error.noClient + } + + return try await client.canMessageV3(addresses: peerAddresses) + } AsyncFunction("staticCanMessage") { (peerAddress: String, environment: String, appVersion: String?) -> Bool in do { diff --git a/ios/XMTPReactNative.podspec b/ios/XMTPReactNative.podspec index 066da9acd..2629cc664 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.5" + s.dependency "XMTP", "= 0.8.6" end