mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-12 15:47: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:
parent
d75d39dc66
commit
339b71a233
1 changed files with 5 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue