Marcus Lundblad wrote:
> ons 2008-10-15 klockan 06:18 -0600 skrev Peter Saint-Andre:
>> Marcus Lundblad wrote:
>>> tis 2008-10-14 klockan 11:56 -0600 skrev Peter Saint-Andre:
>>>> Marcus Lundblad wrote:
>
>>>> I think the natural way to send idle time would be to include a notation
>>>> when changing from available to away, or
>>>> from away to extended away.
>>>>
>>> Sounds reasonable.
>> Indeed, the existing namespace could be used here:
>>
>> <presence from='[EMAIL PROTECTED]/orchard'>
>> <show>away</show>
>> <query xmlns='jabber:iq:last' seconds='720'/>
>> </presence>
>>
>> <presence from='[EMAIL PROTECTED]/orchard'>
>> <show>xa</show>
>> <query xmlns='jabber:iq:last' seconds='7200'/>
>> </presence>
>>
>> Shall I add an example of that to the spec?
>>
>
> This looks good IMHO.
> Maybe we should mention the case when there is no such element in a
> <presence/> to implicitly be interpreted as "not idle (0 seconds)".
> F.ex. when a user comes back from idleness and the client sends updated
> presence it would look like:
>
> <presence >
> <show>available</show>
> </presence>
Right. I think that everything in XMPP is implicitly "now" unless
flagged otherwise, but "away" and "xa" are kind of strange that way
("the current presence is that this person is not present!"), so in this
case it makes sense to send the idle time.
Peter
--
Peter Saint-Andre
https://stpeter.im/