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

notifier: Fix logic error

After introducing the STR_IS_NULL_OR_EMPTY macro the rewrite of the logic was
inverted.

Fixes d3677ad5d1
This commit is contained in:
Evangelos Ribeiro Tzaras 2022-02-25 14:25:59 +01:00
parent d3677ad5d1
commit 094d402d9b

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 = STR_IS_NULL_OR_EMPTY (id);
got_contact = STR_IS_NULL_OR_EMPTY (name);
got_id = !STR_IS_NULL_OR_EMPTY (id);
got_contact = !STR_IS_NULL_OR_EMPTY (name);
if (got_contact)
/* %s is a name here */