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:
committed by
Evangelos Ribeiro Tzaras
parent
d75d39dc66
commit
339b71a233
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user