Skip to content

Commit 1d6d537

Browse files
authored
Merge pull request #128 from shawerestart/master
Add hasVideo property to didDisplayIncomingCall event
2 parents 49d3fdc + 917f764 commit 1d6d537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RNCallKeep/RNCallKeep.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ + (void)reportNewIncomingCall:(NSString *)uuidString
344344
[RNCallKeep initCallKitProvider];
345345
[sharedProvider reportNewIncomingCallWithUUID:uuid update:callUpdate completion:^(NSError * _Nullable error) {
346346
RNCallKeep *callKeep = [RNCallKeep allocWithZone: nil];
347-
[callKeep sendEventWithName:RNCallKeepDidDisplayIncomingCall body:@{ @"error": error ? error.localizedDescription : @"", @"callUUID": uuidString, @"handle": handle, @"localizedCallerName": localizedCallerName, @"fromPushKit": fromPushKit ? @"1" : @"0" }];
347+
[callKeep sendEventWithName:RNCallKeepDidDisplayIncomingCall body:@{ @"error": error ? error.localizedDescription : @"", @"callUUID": uuidString, @"handle": handle, @"localizedCallerName": localizedCallerName, @"hasVideo": hasVideo ? @"1" : @"0", @"fromPushKit": fromPushKit ? @"1" : @"0" }];
348348
if (error == nil) {
349349
// Workaround per https://forums.developer.apple.com/message/169511
350350
if ([callKeep lessThanIos10_2]) {

0 commit comments

Comments
 (0)