1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-12 07:37:35 +00:00

BestMatch: Allways return a name

If no matching contact is found the phone number is used, and when no
phone number was given "Anonymous caller" is returned.
This commit is contained in:
Julian Sparber 2021-01-28 14:43:23 +01:00 committed by Evangelos Ribeiro Tzaras
parent d75d39dc66
commit 339b71a233

View file

@ -375,9 +375,13 @@ calls_best_match_get_name (CallsBestMatch *self)
{
return folks_individual_get_display_name (self->best_match);
}
else if (self->phone_number)
{
return self->phone_number;
}
else
{
return NULL;
return _("Anonymous caller");
}
}