From 3e0960a8f543917145421d44a208177289028121 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 27 Apr 2007 14:02:59 +0000 Subject: [darcs-to-svn @ Only one presence per contact] svn path=/trunk/; revision=9 --- libempathy/empathy-contact-list.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'libempathy/empathy-contact-list.c') diff --git a/libempathy/empathy-contact-list.c b/libempathy/empathy-contact-list.c index 5775ca750..02d0c174d 100644 --- a/libempathy/empathy-contact-list.c +++ b/libempathy/empathy-contact-list.c @@ -1732,12 +1732,7 @@ contact_list_parse_presence_foreach (guint handle, handle); contact_list_block_contact (list, contact); - if (presence) { - gossip_contact_add_presence (contact, presence); - g_object_unref (presence); - } else { - g_object_set (contact, "presences", NULL, NULL); - } + gossip_contact_set_presence (contact, presence); contact_list_unblock_contact (list, contact); } @@ -1767,8 +1762,6 @@ contact_list_presences_table_foreach (const gchar *state_str, gossip_presence_set_status (*presence, g_value_get_string (message)); } - - gossip_presence_set_resource (*presence, ""); } static GossipPresenceState -- cgit v1.2.3