1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-09-29 15:25:24 +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:
Evangelos Ribeiro Tzaras 2023-01-15 10:33:55 +01:00
parent e5a6ace32d
commit 60ece1a656

View file

@ -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 (CALLS_IS_UI_CALL_DATA (self), NULL);
g_return_val_if_fail (!!self->call, 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); return calls_best_match_get_name (self->best_match);
else else
return calls_call_get_name (self->call); return calls_call_get_name (self->call);