Implement contact name lookup for call display

* src/calls-manager.h: Add lookup function to header
* src/calls-manager.c: Implement lookup function to be used for the call
  history, call notifier and call display
* src/calls-call-holder.c: Use calls_manager_get_contact_name ()
* src/calls-notifier.c: Use calls_manager_get_contact_name ()
This commit is contained in:
Evangelos Ribeiro Tzaras
2020-06-17 13:53:46 +02:00
parent 0f0d10e3f2
commit 9fc8ec5e1a
4 changed files with 50 additions and 29 deletions

View File

@@ -23,6 +23,7 @@
*/
#include "calls-call-holder.h"
#include "calls-manager.h"
#include "util.h"
#include <glib/gi18n.h>
@@ -90,8 +91,8 @@ calls_call_holder_get_selector_item (CallsCallHolder *holder)
static void
set_call (CallsCallHolder *self, CallsCall *call)
{
CallsParty *party
= calls_party_new (NULL, calls_call_get_number (call));
CallsParty *party = calls_party_new (calls_manager_get_contact_name (call),
calls_call_get_number (call));
self->data = calls_call_data_new (call, party);
g_object_unref (party);