From 791e5739bca80309501825f48da93a78aaba0b3c Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 19 Jul 2010 18:55:35 +0100 Subject: Maintain a list of Individuals which have EmpathyContacts in the manager This is necessary so that Individuals can be tracked as EmpathyContact-carrying Personas are added and removed from them, and to ensure that the IndividualManager doesn't use Individuals without EmpathyContacts. --- libempathy/empathy-contact.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libempathy/empathy-contact.c') diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index 6842cde09..b28959a31 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -807,7 +807,8 @@ empathy_contact_get_persona (EmpathyContact *contact) if (tp_contact == priv->tp_contact) { /* Found the right persona */ - priv->persona = g_object_ref (persona); + empathy_contact_set_persona (contact, + (FolksPersona*) persona); goto finished; } } -- cgit v1.2.3