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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user