Justin Karneges wrote:
> On Wednesday 15 October 2008 11:26:44 Peter Saint-Andre wrote:
>> Jonathan Schleifer wrote:
>>> Am 15.10.2008 um 20:09 schrieb Justin Karneges:
>>>> 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).
> 
> Silly me.  I didn't know full JID querying was used.  Psi doesn't seem to 
> support it..
> 
> The proposal looks good to me then.

Here is the text I have formulated to address this use case (by adding a
new section to XEP-0012)...

***

5. Inclusion in Presence

An online client MAY include last activity information when sending
presence updates. The prototypical use case is including the idle time
when automatically setting the user's <show/> value to "away" or "xa"
(extended away). For example, consider a user who has configured her
client to automatically change her presence to "away" after 10 minutes
of inactivity. The client could include an iq:last flag to specify how
long the user has been idle.

Example 10. Last Indication in Auto-Away

<presence from='[EMAIL PROTECTED]/balcony'>
  <show>away</show>
  <query xmlns='jabber:iq:last' seconds='600'/>
</presence>

If one of the user's contacts receives that presence notification with
delayed delivery (see Delayed Delivery [3]) on login in response to a
presence probe as described in XMPP IM [4], the contact will then know
how long the user has been idle (i.e., the number of seconds since the
delayed delivery timestamp, plus the iq:last seconds). Thus the contact
does not need to send an iq:last query.

Example 11. Last Indication in Auto-Away With Delayed Delivery

<presence from='[EMAIL PROTECTED]/balcony' to='[EMAIL PROTECTED]'>
  <show>away</show>
  <query xmlns='jabber:iq:last' seconds='600'/>
  <delay xmlns='urn:xmpp:delay'
     from='capulet.com'
     stamp='2002-09-10T23:41:07Z'/>
</presence>

If no last indication is included in a presence notification, the
recipient MUST assume that the idle time is zero.

***

Yes, no, maybe?

Peter

Reply via email to