From 339b71a233ab02af367b020f78e4f805717090e1 Mon Sep 17 00:00:00 2001 From: Julian Sparber Date: Thu, 28 Jan 2021 14:43:23 +0100 Subject: [PATCH] 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. --- src/calls-best-match.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/calls-best-match.c b/src/calls-best-match.c index 7c13526..32ee970 100644 --- a/src/calls-best-match.c +++ b/src/calls-best-match.c @@ -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"); } }