[calls] new-call-box: Decide if numeric input is needed based on the origins protocol



commit 6d031e2ab63cc6b394d6189d1354533faa60965e
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Mon Dec 20 19:06:52 2021 +0100

    new-call-box: Decide if numeric input is needed based on the origins protocol
    
    The numeric addresses property conveys no additional information.
    By changing the logic here we can get rid of the "numeric-addresses" property
    alltogether.

 src/calls-new-call-box.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/calls-new-call-box.c b/src/calls-new-call-box.c
index a192b76e..aac15a48 100644
--- a/src/calls-new-call-box.c
+++ b/src/calls-new-call-box.c
@@ -147,7 +147,7 @@ notify_selected_index_cb (CallsNewCallBox *self)
   gboolean numeric_input = TRUE;
 
   if (origin)
-    g_object_get (origin, "numeric-addresses", &numeric_input, NULL);
+    numeric_input = calls_origin_supports_protocol (origin, "tel");
 
   set_numeric (self, numeric_input);
 }


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