pidgin: 96db74f0: Update the Address Book when we recieve ...

qulogic at pidgin.im qulogic at pidgin.im
Thu Jan 29 22:30:47 EST 2009


-----------------------------------------------------------------
Revision: 96db74f0ccbe2a283893e33f0f7bff5a827f48d9
Ancestor: 76c39e91278034c66dd1c7ffb2f0e49883bac850
Author: qulogic at pidgin.im
Date: 2009-01-30T03:27:38
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/96db74f0ccbe2a283893e33f0f7bff5a827f48d9

Modified files:
        libpurple/protocols/msn/notification.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c	7d48e23134e6b98c8b98c00566cbe156763e77dc
+++ libpurple/protocols/msn/notification.c	51210d7a131b11453c6471c5dd8052f690ea360a
@@ -1094,8 +1094,10 @@ iln_cmd(MsnCmdProc *cmdproc, MsnCommand 
 		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 @@ nln_cmd(MsnCmdProc *cmdproc, MsnCommand 
 	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)


More information about the Commits mailing list