From d29f37ae82b28862b3ab8731a79e3eeb2174726f Mon Sep 17 00:00:00 2001 From: Andrey Guzyuk Date: Thu, 11 Oct 2018 00:43:18 +0300 Subject: [PATCH] Ability to include or exclude calls from recent --- ios/RNCallKit/RNCallKit.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ios/RNCallKit/RNCallKit.m b/ios/RNCallKit/RNCallKit.m index fc3439f..191b50c 100644 --- a/ios/RNCallKit/RNCallKit.m +++ b/ios/RNCallKit/RNCallKit.m @@ -299,6 +299,11 @@ - (CXProviderConfiguration *)getProviderConfiguration if (_settings[@"ringtoneSound"]) { providerConfiguration.ringtoneSound = _settings[@"ringtoneSound"]; } + if (_settings[@"includesCallsInRecents"]) { + if (@available(iOS 11.0, *)) { + providerConfiguration.includesCallsInRecents = [_settings[@"includesCallsInRecents"] boolValue]; + } + } return providerConfiguration; }