Jonathan Schleifer wrote:
> Am 15.10.2008 um 20:09 schrieb Justin Karneges:
> 
>> I don't think iq:last really tracks idle.  To track idle you need the
>> help of
>> the client, but iq:last is handled by the server.  At best, the value of
>> iq:last is the last network activity from the client.  I notice on
>> jabber.org
>> that if I do iq:last on a particular person who is online, I get a 13
>> hour
>> time and "Logged Out" string.  Weird.  This leads me to believe that
>> iq:last
>> is used mostly to finding the time an offline user was last online,
>> and it is
>> not something you'd use on an online user.  Maybe not all servers
>> behave this
>> way, but one thing is true in all cases: the value is never the idle
>> time.
> 
> It is only the idle time when you send to the full JID. The bare JID
> always returns last logged in.

Right. So sending idle in client-generated presence is consistent with
that (and no need to ping).

Peter

-- 
Peter Saint-Andre
https://stpeter.im/

Reply via email to