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

mm-provider: Don't exit early when country code matches

This makes sure we fetch emergency numbers in any case (and also
further things should they be added later).
This commit is contained in:
Guido Günther 2023-04-09 16:18:47 +02:00 committed by Evangelos Ribeiro Tzaras
parent 36fdbc28e6
commit 47afc70552

View file

@ -796,10 +796,7 @@ get_sim_ready_cb (MMModem *modem,
self->sim = mm_modem_get_sim_finish (modem, res, NULL);
code = get_country_iso_for_mcc (mm_sim_get_imsi (self->sim));
if (code) {
if (g_strcmp0 (self->country_code, code) == 0)
return;
if (code && g_strcmp0 (self->country_code, code)) {
g_debug ("Setting the country code to `%s'", code);
self->country_code = g_strdup (code);