mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-05 19:15:32 +00:00
ui-call-data: Always use calls_best_match_get_avatar() to retrieve avatars
self->best_match is never NULL: The test suite used to wrap calls_contacts_provder_new() to always return NULL which in turn caused the best match to be NULL. This was done to avoid warnings raised by libfolks about missing the primary store (eds). This is no longer necessary as the environment now tells folks which backend to use.
This commit is contained in:
parent
28f0ee42ee
commit
ac83323de6
1 changed files with 1 additions and 4 deletions
|
@ -145,10 +145,7 @@ calls_ui_call_data_get_avatar_icon (CuiCall *call_data)
|
|||
|
||||
g_return_val_if_fail (CALLS_UI_CALL_DATA (self), NULL);
|
||||
|
||||
if (self->best_match)
|
||||
return calls_best_match_get_avatar (self->best_match);
|
||||
else
|
||||
return NULL;
|
||||
return calls_best_match_get_avatar (self->best_match);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue