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");
}
}