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

application: Use the country code

This commit is contained in:
Evangelos Ribeiro Tzaras 2021-03-25 20:28:37 +01:00
parent 7d69d78b70
commit e5832bbad3

View file

@ -420,10 +420,15 @@ open_tel_uri (CallsApplication *self,
g_autoptr (EPhoneNumber) number = NULL;
g_autoptr (GError) error = NULL;
g_autofree gchar *dial_str = NULL;
g_autofree gchar *country_code = NULL;
g_object_get (calls_manager_get_default (),
"country-code", &country_code,
NULL);
g_debug ("Opening tel URI `%s'", uri);
number = e_phone_number_from_string (uri, NULL, &error);
number = e_phone_number_from_string (uri, country_code, &error);
if (!number)
{
g_autofree gchar *msg =