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; AdvancedSettingsTableViewControllerSection settingsSection = (AdvancedSettingsTableViewControllerSection)section;
switch (settingsSection) { switch (settingsSection) {
case AdvancedSettingsTableViewControllerSectionCalling: case AdvancedSettingsTableViewControllerSectionCalling:
// 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."); return NSLocalizedString(@"SETTINGS_SECTION_CALL_KIT_DESCRIPTION", @"Settings table section footer.");
}
default: default:
return nil; return nil;
} }

Loading…
Cancel
Save