Skip to content

Commit 3223220

Browse files
committed
Added isLocked prop to answerCall event
1 parent d7ea6eb commit 3223220

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ios/RNCallKeep/RNCallKeep.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ - (void)provider:(CXProvider *)provider performAnswerCallAction:(CXAnswerCallAct
566566
NSLog(@"[RNCallKeep][CXProviderDelegate][provider:performAnswerCallAction]");
567567
#endif
568568
[self configureAudioSession];
569-
[self sendEventWithName:RNCallKeepPerformAnswerCallAction body:@{ @"callUUID": [action.callUUID.UUIDString lowercaseString] }];
569+
[self sendEventWithName:RNCallKeepPerformAnswerCallAction body:@{ @"callUUID": [action.callUUID.UUIDString lowercaseString], @"isLocked": [[UIApplication sharedApplication] isProtectedDataAvailable] ? @"false" : @"true" }];
570570
[action fulfill];
571571
}
572572

0 commit comments

Comments
 (0)