Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

bugfix(ios) changes the participantInfo completion handler reference to strong.

tmoldovan8x8ef6b641802e0
diff --git a/ios/sdk/src/ExternalAPI.m b/ios/sdk/src/ExternalAPI.m
index 9ef20fc268..4dbc8e9796 100644
--- a/ios/sdk/src/ExternalAPI.m
+++ b/ios/sdk/src/ExternalAPI.m
@@ -30,7 +30,7 @@ static NSMapTable<NSString*, void (^)(NSArray* participantsInfo)> *participantIn
__attribute__((constructor))
static void initializeViewsMap() {
- participantInfoCompletionHandlers = [NSMapTable strongToWeakObjectsMapTable];
+ participantInfoCompletionHandlers = [NSMapTable strongToStrongObjectsMapTable];
}
RCT_EXPORT_MODULE();
@@ -160,7 +160,7 @@ RCT_EXPORT_METHOD(sendEvent:(NSString *)name
NSString *completionHandlerId = [[NSUUID UUID] UUIDString];
NSDictionary *data = @{ @"requestId": completionHandlerId};
- [participantInfoCompletionHandlers setObject:completionHandler forKey:completionHandlerId];
+ [participantInfoCompletionHandlers setObject:[completionHandler copy] forKey:completionHandlerId];
[self sendEventWithName:retrieveParticipantsInfoAction body:data];
}