| 242 |
242 |
| 243 g_free(own_jid); |
243 g_free(own_jid); |
| 244 js->currently_parsing_roster_push = FALSE; |
244 js->currently_parsing_roster_push = FALSE; |
| 245 |
245 |
| 246 /* if we're just now parsing the roster for the first time, |
246 /* if we're just now parsing the roster for the first time, |
| 247 * then now would be the time to declare ourselves connected and |
247 * then now would be the time to declare ourselves connected. |
| 248 * send our initial presence */ |
248 */ |
| 249 if(!js->roster_parsed) { |
249 if (js->state != JABBER_STREAM_CONNECTED) |
| 250 js->roster_parsed = TRUE; |
|
| 251 jabber_presence_send(js, TRUE); |
|
| 252 jabber_stream_set_state(js, JABBER_STREAM_CONNECTED); |
250 jabber_stream_set_state(js, JABBER_STREAM_CONNECTED); |
| 253 } |
|
| 254 } |
251 } |
| 255 |
252 |
| 256 static void jabber_roster_update(JabberStream *js, const char *name, |
253 static void jabber_roster_update(JabberStream *js, const char *name, |
| 257 GSList *grps) |
254 GSList *grps) |
| 258 { |
255 { |