Skip to content
This repository was archived by the owner on May 26, 2019. It is now read-only.

Disable or enable ability to save calls in history (Recent tab) #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ios/RNCallKit/RNCallKit.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down