Skip to content

Commit 1455d42

Browse files
committed
Remove useless handleStartCallNotification
1 parent 875cd6e commit 1455d42

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

ios/RNCallKeep/RNCallKeep.m

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -629,24 +629,6 @@ + (BOOL)requiresMainQueueSetup
629629
return YES;
630630
}
631631

632-
- (void)handleStartCallNotification:(NSDictionary *)userInfo
633-
{
634-
#ifdef DEBUG
635-
NSLog(@"[RNCallKeep][handleStartCallNotification] userInfo = %@", userInfo);
636-
#endif
637-
int delayInSeconds;
638-
if (!_isStartCallActionEventListenerAdded) {
639-
// Workaround for when app is just launched and JS side hasn't registered to the event properly
640-
delayInSeconds = OUTGOING_CALL_WAKEUP_DELAY;
641-
} else {
642-
delayInSeconds = 0;
643-
}
644-
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
645-
dispatch_after(popTime, dispatch_get_main_queue(), ^{
646-
[self sendEventWithNameWrapper:RNCallKeepDidReceiveStartCallAction body:userInfo];
647-
});
648-
}
649-
650632
#pragma mark - CXProviderDelegate
651633

652634
- (void)providerDidReset:(CXProvider *)provider{

0 commit comments

Comments
 (0)