Don't show callkit description pre-iOS10 (#1722)

// FREEBIE
pull/1/head
Michael Kirk 8 years ago committed by GitHub
parent 633e4a157e
commit bf1ed9a277

@ -139,7 +139,7 @@ typedef NS_ENUM(NSInteger, AdvancedSettingsTableViewControllerSection) {
switch (settingsSection) { switch (settingsSection) {
case AdvancedSettingsTableViewControllerSectionCalling: case AdvancedSettingsTableViewControllerSectionCalling:
// We only show the CallKit setting if WebRTC is enabled. // We only show the CallKit setting if WebRTC is enabled.
if ([Environment.preferences isWebRTCEnabled]) { if ([Environment.preferences isWebRTCEnabled] && [self supportsCallKit]) {
return NSLocalizedString(@"SETTINGS_SECTION_CALL_KIT_DESCRIPTION", @"Settings table section footer."); return NSLocalizedString(@"SETTINGS_SECTION_CALL_KIT_DESCRIPTION", @"Settings table section footer.");
} }
default: default:

Loading…
Cancel
Save