comparison libpurple/protocols/jabber/presence.c @ 25250:b1a16f0efec2

Added comment about eventually needing a way to distinguish intial presence received upon logging in (to be able to disregard idle time when there is no delayed element on an initial presence, in which case we don't know when the buddy became idle).
author Marcus Lundblad <ml@update.uu.se>
date Wed, 24 Dec 2008 13:36:10 +0000
parents 6fed1bb3b02e
children f2d533384535
comparison
equal deleted inserted replaced
25249:c3e44dae2f65 25250:b1a16f0efec2
422 422
423 g_free(userdata->from); 423 g_free(userdata->from);
424 g_free(userdata); 424 g_free(userdata);
425 } 425 }
426 426
427 /* would need to add some detection to determine if a
428 <presence/> packet is part of the "initial" presence the server
429 sends us, this way we could disregard a buddy's idle time in case the server
430 does not set <delayed/> on delayed presence. This would avoid
431 showing an incorrect idle time */
427 void jabber_presence_parse(JabberStream *js, xmlnode *packet) 432 void jabber_presence_parse(JabberStream *js, xmlnode *packet)
428 { 433 {
429 const char *from = xmlnode_get_attrib(packet, "from"); 434 const char *from = xmlnode_get_attrib(packet, "from");
430 const char *type = xmlnode_get_attrib(packet, "type"); 435 const char *type = xmlnode_get_attrib(packet, "type");
431 const char *real_jid = NULL; 436 const char *real_jid = NULL;