From 30a916b51412f10245f6a07fa2ffb3c254ca8568 Mon Sep 17 00:00:00 2001 From: "benoit.martins" Date: Fri, 5 May 2023 13:51:36 +0200 Subject: [PATCH] Change UIAlertController condiiton to display Debug popup in DialerView --- Classes/DialerView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/DialerView.m b/Classes/DialerView.m index a97c46aab..ab7377b1b 100644 --- a/Classes/DialerView.m +++ b/Classes/DialerView.m @@ -285,7 +285,7 @@ static UICompositeViewDescription *compositeDescription = nil; - (BOOL)displayDebugPopup:(NSString *)address { LinphoneManager *mgr = LinphoneManager.instance; NSString *debugAddress = [mgr lpConfigStringForKey:@"debug_popup_magic" withDefault:@""]; - if (TRUE) { + if ((![debugAddress isEqualToString:@""] && [address isEqualToString:debugAddress]) || [_addressField.text isEqual: @"#1234#"]) { UIAlertController *errView = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"Debug", nil) message:NSLocalizedString(@"Choose an action", nil) preferredStyle:UIAlertControllerStyleAlert];