Update the Address Book when we recieve a new friendly name for a buddy.

Fri, 30 Jan 2009 03:27:38 +0000

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Fri, 30 Jan 2009 03:27:38 +0000
changeset 25534
a2f044ce77b1
parent 25533
e00f6966801d
child 25535
ce072d0b75c1
child 25541
1b82a0195ff5
child 26274
bb2639c3caff

Update the Address Book when we recieve a new friendly name for a buddy.
That should stop you from seeing a really really old name (or even just the
email address) for buddies who are offline when you sign in.

Fixes #8282.

libpurple/protocols/msn/notification.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/msn/notification.c	Fri Jan 30 03:14:29 2009 +0000
+++ b/libpurple/protocols/msn/notification.c	Fri Jan 30 03:27:38 2009 +0000
@@ -1094,8 +1094,10 @@
 		return;
 	}
 
-	if (msn_user_set_friendly_name(user, friendly))
+	if (msn_user_set_friendly_name(user, friendly)) {
 		serv_got_alias(gc, passport, friendly);
+		msn_update_contact(session, passport, MSN_UPDATE_DISPLAY, friendly);
+	}
 	g_free(friendly);
 
 	msn_user_set_object(user, msnobj);
@@ -1237,6 +1239,7 @@
 	if (msn_user_set_friendly_name(user, friendly))
 	{
 		serv_got_alias(gc, passport, friendly);
+		msn_update_contact(session, passport, MSN_UPDATE_DISPLAY, friendly);
 	}
 
 	if (cmd->param_count == 6)

mercurial