changeset 25951: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 c3e44dae2f65
children 6185767dc03c
files libpurple/protocols/jabber/presence.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
+ <presence/> 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 <delayed/> 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");