From 67920cae23f4b8020559d7548fd1dff8de44e962 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Thu, 24 Feb 2011 10:17:15 +0000 Subject: Port empathy to Telepathy logger 0.2.0 --- libempathy/empathy-contact.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libempathy/empathy-contact.c') diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index 0547ef82d..73539b406 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -1161,12 +1161,17 @@ static gboolean contact_has_log (EmpathyContact *contact) { TplLogManager *manager; + TplEntity *entity; gboolean have_log; manager = tpl_log_manager_dup_singleton (); + entity = tpl_entity_new (empathy_contact_get_id (contact), + TPL_ENTITY_CONTACT, NULL, NULL); + have_log = tpl_log_manager_exists (manager, - empathy_contact_get_account (contact), empathy_contact_get_id (contact), - FALSE); + empathy_contact_get_account (contact), entity, TPL_EVENT_MASK_TEXT); + + g_object_unref (entity); g_object_unref (manager); return have_log; -- cgit v1.2.3