mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-05 19:15:32 +00:00
ui-call-data: Use the name of the best match if individual was found
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
e5a6ace32d
commit
60ece1a656
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ calls_ui_call_data_get_display_name (CuiCall *call_data)
|
|||
g_return_val_if_fail (CALLS_IS_UI_CALL_DATA (self), NULL);
|
||||
g_return_val_if_fail (!!self->call, NULL);
|
||||
|
||||
if (self->best_match)
|
||||
if (calls_best_match_has_individual (self->best_match))
|
||||
return calls_best_match_get_name (self->best_match);
|
||||
else
|
||||
return calls_call_get_name (self->call);
|
||||
|
|
Loading…
Reference in a new issue