changeset 9262:572e4658492c

[gaim-migrate @ 10061] Patch by Justin Wood. He says: "User icon would set wrong status There is a small window, that if you set a user icon, you'll set the wrong status for the next update. Thought this over, and it shouldn't have any nasty side effects.. but there are potential problems, if a status change message is lost. Things should be ok though, that said" committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 11 Jun 2004 00:16:36 +0000
parents 77fdeb4c459f
children 70153c759016
files COPYRIGHT src/protocols/msn/state.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/COPYRIGHT	Fri Jun 11 00:11:52 2004 +0000
+++ b/COPYRIGHT	Fri Jun 11 00:16:36 2004 +0000
@@ -153,6 +153,7 @@
 Dan Willemsen
 Jason Willis
 Matt Wilson
+Justin Wood
 Ximian
 Jared Yanovich
 Timmy Yee
--- a/src/protocols/msn/state.c	Fri Jun 11 00:11:52 2004 +0000
+++ b/src/protocols/msn/state.c	Fri Jun 11 00:16:36 2004 +0000
@@ -68,6 +68,12 @@
 		msn_cmdproc_send(cmdproc, "CHG", "%s %d %s", state_text,
 						 MSN_CLIENT_ID, gaim_url_encode(msnobj_str));
 
+		/*
+		 * We need to set this just in case someone tries to set icon
+		 * quickly on us - Justin
+		 */
+		session->state = state;
+
 		g_free(msnobj_str);
 	}
 }