libpurple/protocols/jabber/roster.c

branch
cpw.darkrain42.xmpp.bosh
changeset 25799
f2b56ff62042
parent 24717
13c7497f44f8
child 25800
649ac8f00e04
--- a/libpurple/protocols/jabber/roster.c	Tue Feb 10 04:39:16 2009 +0000
+++ b/libpurple/protocols/jabber/roster.c	Tue Feb 10 04:43:50 2009 +0000
@@ -257,10 +257,11 @@
 	js->currently_parsing_roster_push = FALSE;
 
 	/* if we're just now parsing the roster for the first time,
-	 * then now would be the time to send our initial presence */
+	 * then now would be the time to declare ourselves connected and
+	 * send our initial presence */
 	if(!js->roster_parsed) {
 		js->roster_parsed = TRUE;
-
+		jabber_stream_set_state(js, JABBER_STREAM_CONNECTED);
 		jabber_presence_send(js, TRUE);
 	}
 }

mercurial