changeset 16511:f2332c0da79f

merge of '2f959ba8a0fdac370ac610e60f6a4cd09525d928' and '49b3bf5604009f3f19eee42ccd7b9c061a9109f1'
author Richard Laager <rlaager@wiktel.com>
date Fri, 27 Apr 2007 06:19:04 +0000
parents 2ae39a056179 (current diff) f1513338fbdb (diff)
children 382862262d0b
files
diffstat 2 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/blist.c	Fri Apr 27 05:32:49 2007 +0000
+++ b/libpurple/blist.c	Fri Apr 27 06:19:04 2007 +0000
@@ -2334,7 +2334,6 @@
 					buddy = (PurpleBuddy *)bnode;
 					if (account == buddy->account) {
 						PurplePresence *presence;
-						recompute = TRUE;
 
 						presence = purple_buddy_get_presence(buddy);
 
@@ -2354,8 +2353,14 @@
 						if (!g_list_find(list, presence))
 							list = g_list_prepend(list, presence);
 
-						if (ops && ops->remove)
+						if (contact->priority == buddy)
+							purple_contact_invalidate_priority_buddy(contact);
+						else
+							recompute = TRUE;
+
+						if (ops && ops->remove) {
 							ops->remove(purplebuddylist, bnode);
+						}
 					}
 				}
 				if (recompute) {
--- a/libpurple/status.c	Fri Apr 27 05:32:49 2007 +0000
+++ b/libpurple/status.c	Fri Apr 27 06:19:04 2007 +0000
@@ -637,9 +637,6 @@
 
 		g_free(tmp);
 	}
-
-	if (ops != NULL && ops->update != NULL)
-		ops->update(purple_get_blist(), (PurpleBlistNode*)buddy);
 }
 
 static void