1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-16 08:49:31 +00:00

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.
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-12-20 19:06:52 +01:00
parent 79ebe6d985
commit 6d031e2ab6

View file

@ -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);
}