|
@@ -30,7 +30,7 @@ static NSMapTable<NSString*, void (^)(NSArray* participantsInfo)> *participantIn
|
30
|
30
|
|
31
|
31
|
__attribute__((constructor))
|
32
|
32
|
static void initializeViewsMap() {
|
33
|
|
- participantInfoCompletionHandlers = [NSMapTable strongToWeakObjectsMapTable];
|
|
33
|
+ participantInfoCompletionHandlers = [NSMapTable strongToStrongObjectsMapTable];
|
34
|
34
|
}
|
35
|
35
|
|
36
|
36
|
RCT_EXPORT_MODULE();
|
|
@@ -160,7 +160,7 @@ RCT_EXPORT_METHOD(sendEvent:(NSString *)name
|
160
|
160
|
NSString *completionHandlerId = [[NSUUID UUID] UUIDString];
|
161
|
161
|
NSDictionary *data = @{ @"requestId": completionHandlerId};
|
162
|
162
|
|
163
|
|
- [participantInfoCompletionHandlers setObject:completionHandler forKey:completionHandlerId];
|
|
163
|
+ [participantInfoCompletionHandlers setObject:[completionHandler copy] forKey:completionHandlerId];
|
164
|
164
|
|
165
|
165
|
[self sendEventWithName:retrieveParticipantsInfoAction body:data];
|
166
|
166
|
}
|