Only show CallKit footer when showing the CallKit cell

// FREEBIE
pull/1/head
Michael Kirk 8 years ago committed by GitHub
parent 90388ebd63
commit ef5c2c5416

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

Loading…
Cancel
Save