mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-17 07:46:03 +00:00
ui-call-data: Handle anonymous callers gracefully
This commit is contained in:
parent
9ffcbe2de8
commit
79875cb64e
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
return calls_best_match_get_avatar (self->best_match);
|
if (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),
|
||||||
|
|
Loading…
Reference in a new issue