From 2c89cb8173c6009fdceef34dfde0eba131dc3632 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Thu, 28 May 2015 15:51:43 +0200 Subject: [PATCH] SettingsViewController: hide media encryption preference when SSL not available --- Classes/SettingsViewController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Classes/SettingsViewController.m b/Classes/SettingsViewController.m index 4f56f8a72..42c28edd4 100644 --- a/Classes/SettingsViewController.m +++ b/Classes/SettingsViewController.m @@ -595,6 +595,10 @@ static UICompositeViewDescription *compositeDescription = nil; LinphoneManager* lm = [LinphoneManager instance]; NSMutableSet *hiddenKeys = [NSMutableSet set]; +#ifndef HAVE_SSL + [hiddenKeys addObject:@"media_encryption_preference"]; +#endif + #ifndef DEBUG [hiddenKeys addObject:@"release_button"]; [hiddenKeys addObject:@"clear_cache_button"];