1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-13 16:07:36 +00:00

notifier: Fix expression testing if there is a contact

Previously cui_call_get_display_name() would return the ID of the caller if no
contact was found. As this has changed recently the test for got_contact broke.
This commit is contained in:
Evangelos Ribeiro Tzaras 2022-02-17 17:04:38 +01:00
parent bac8b81a43
commit d3677ad5d1

View file

@ -68,8 +68,8 @@ notify (CallsNotifier *self, CuiCall *call)
name = cui_call_get_display_name (call);
id = cui_call_get_id (call);
got_id = !!id && (g_strcmp0 (id, "") != 0);
got_contact = got_id && (g_strcmp0 (id, name) != 0);
got_id = STR_IS_NULL_OR_EMPTY (id);
got_contact = STR_IS_NULL_OR_EMPTY (name);
if (got_contact)
/* %s is a name here */