From ef5c2c541624494ca8ac7ea1299bdd491c0e617b Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Fri, 3 Feb 2017 14:10:38 -0500 Subject: [PATCH] Only show CallKit footer when showing the CallKit cell // FREEBIE --- .../view controllers/AdvancedSettingsTableViewController.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Signal/src/view controllers/AdvancedSettingsTableViewController.m b/Signal/src/view controllers/AdvancedSettingsTableViewController.m index 349abeb7b..1720d5d91 100644 --- a/Signal/src/view controllers/AdvancedSettingsTableViewController.m +++ b/Signal/src/view controllers/AdvancedSettingsTableViewController.m @@ -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; }