diff --git a/ios/sdk/src/callkit/JMCallKitProxy.m b/ios/sdk/src/callkit/JMCallKitProxy.m index 3ec31b81628..c18f9c8b110 100644 --- a/ios/sdk/src/callkit/JMCallKitProxy.m +++ b/ios/sdk/src/callkit/JMCallKitProxy.m @@ -197,7 +197,7 @@ + (void)removeListener:(nonnull id)listener { + (BOOL)hasActiveCallForUUID:(nonnull NSString *)callUUID { CXCall *activeCallForUUID = [[self.callController calls] filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(CXCall *evaluatedObject, NSDictionary *bindings) { - return evaluatedObject.UUID.UUIDString == callUUID; + return [evaluatedObject.UUID.UUIDString isEqualToString:callUUID]; }]].firstObject; if (!activeCallForUUID) {