# HG changeset patch # User Marcus Lundblad # Date 1230125770 0 # Node ID b1a16f0efec2889822d2b6fa528ef37113d4f09d # Parent c3e44dae2f650d93cb6c31f1e43bc73096a4834f 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). diff -r c3e44dae2f65 -r b1a16f0efec2 libpurple/protocols/jabber/presence.c --- a/libpurple/protocols/jabber/presence.c Tue Dec 23 20:12:07 2008 +0000 +++ b/libpurple/protocols/jabber/presence.c Wed Dec 24 13:36:10 2008 +0000 @@ -424,6 +424,11 @@ g_free(userdata); } +/* would need to add some detection to determine if a + packet is part of the "initial" presence the server + sends us, this way we could disregard a buddy's idle time in case the server + does not set on delayed presence. This would avoid + showing an incorrect idle time */ void jabber_presence_parse(JabberStream *js, xmlnode *packet) { const char *from = xmlnode_get_attrib(packet, "from");