1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-17 16:05:36 +00:00

ui-call-data: Handle anonymous callers gracefully

This commit is contained in:
Evangelos Ribeiro Tzaras 2022-02-17 11:51:37 +01:00
parent 9ffcbe2de8
commit 79875cb64e

View file

@ -144,7 +144,10 @@ calls_ui_call_data_get_avatar_icon (CuiCall *call_data)
g_return_val_if_fail (CALLS_UI_CALL_DATA (self), NULL); g_return_val_if_fail (CALLS_UI_CALL_DATA (self), NULL);
if (self->best_match)
return calls_best_match_get_avatar (self->best_match); return calls_best_match_get_avatar (self->best_match);
else
return NULL;
} }
@ -332,6 +335,9 @@ set_call_data (CallsUiCallData *self,
calls_contacts_provider_lookup_id (contacts_provider, calls_contacts_provider_lookup_id (contacts_provider,
calls_call_get_id (call)); calls_call_get_id (call));
if (!self->best_match)
return;
g_signal_connect_object (self->best_match, g_signal_connect_object (self->best_match,
"notify::name", "notify::name",
G_CALLBACK (on_notify_name), G_CALLBACK (on_notify_name),