[calls/next] application: Clarify that -l flag is to be used with numbers only



commit 2e3b2d3e4ef73368be599c86f47c29fb6c144bf0
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Tue Sep 7 13:49:05 2021 +0200

    application: Clarify that -l flag is to be used with numbers only
    
    This will also help unifying handling of tel: URIs.

 src/calls-application.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/src/calls-application.c b/src/calls-application.c
index 62ddff5b..62a7a296 100644
--- a/src/calls-application.c
+++ b/src/calls-application.c
@@ -267,12 +267,6 @@ dial_action (GSimpleAction *action,
   number = g_variant_get_string (parameter, NULL);
   g_return_if_fail (number != NULL);
 
-  if (g_str_has_prefix (number, "sip:") ||
-      g_str_has_prefix (number, "sips:")) {
-    dial_string = g_strdup (number);
-    goto proper;
-  }
-
   number_ok = check_dial_number (number);
   if (!number_ok) {
     g_warning ("Dial number `%s' is not a valid dial string",
@@ -288,7 +282,6 @@ dial_action (GSimpleAction *action,
   g_debug ("Dialing dial string `%s' extracted from number `%s'",
            dial_string, number);
 
- proper:
   start_proper (self);
 
   calls_main_window_dial (self->main_window,
@@ -689,7 +682,7 @@ calls_application_init (CallsApplication *self)
     {
       "dial", 'l', G_OPTION_FLAG_NONE,
       G_OPTION_ARG_STRING, NULL,
-      _("Dial a number"),
+      _("Dial a telephone number"),
       _("NUMBER")
     },
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]