From 6d031e2ab63cc6b394d6189d1354533faa60965e Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Mon, 20 Dec 2021 19:06:52 +0100 Subject: [PATCH] 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 a192b76..aac15a4 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); }