On Fri, Oct 20, 2017 at 4:56 PM, Philipp Hörist <[email protected]> wrote:

> Hi,
>
> The only thing you can do with privacy lists is you can block someone
> until your next login.
>
> There is nothing like a "block for X minutes".
>
> XEP-0191, is a full block always, not only presence, also messages, so in
> your use case not really suitable.
>
> of course something like that could be easily implemented inside the
> client, so the client just ignores presence for X minutes. Of course this
> would only work for that one client. not for all your resources.
>

 Is there any harm in putting this server-side, so I do not have to repeat
the blocking process multiple times? The enhancement to XEP-0016 seems to
be minor IMO, probably just add (optional) expiry to a privacy list stanza:

<iq>
  <query xmlns='jabber:iq:privacy'>
    <list name='foo'>
      <item
          type='[jid|group|subscription]'
          value='bar'
          action='[allow|deny]'
          order='unsignedInt'
          expiry= '1508507159'>

        [<message/>]
        [<presence-in/>]
        [<presence-out/>]
        [<iq/>]
      </item>
    </list>
  </query>
</iq>



or am I missing something?

-Vaibhav

>
> regards
> philipp
>
> 2017-10-20 12:44 GMT+02:00 vaibhav singh <[email protected]>:
>
>>
>>
>> On Fri, Oct 20, 2017 at 4:04 PM, Evgeny Khramtsov <[email protected]>
>> wrote:
>>
>>> Fri, 20 Oct 2017 16:01:31 +0530
>>> vaibhav singh <[email protected]> wrote:
>>>
>>> > Is there provision in presence protocol for this?
>>>
>>> You can block incoming presences using Privacy Lists (XEP-0016).
>>>
>>
>> Thanks for the quick reply. I was however, interested more in blocking
>> someone for a specified period of time. Is ephemeral blocking allowed? I
>> glanced through XEP-0016 as well as  XEP-0191: Blocking Command, and could
>> not see any mention of it.
>>
>> -Vaibhav
>>
>>> _______________________________________________
>>> Standards mailing list
>>> Info: https://mail.jabber.org/mailman/listinfo/standards
>>> Unsubscribe: [email protected]
>>> _______________________________________________
>>>
>>
>>
>>
>> --
>>
>> Regards,
>> Vaibhav Singh
>>
>> _______________________________________________
>> Standards mailing list
>> Info: https://mail.jabber.org/mailman/listinfo/standards
>> Unsubscribe: [email protected]
>> _______________________________________________
>>
>>
>
> _______________________________________________
> Standards mailing list
> Info: https://mail.jabber.org/mailman/listinfo/standards
> Unsubscribe: [email protected]
> _______________________________________________
>
>


-- 

Regards,
Vaibhav Singh
_______________________________________________
Standards mailing list
Info: https://mail.jabber.org/mailman/listinfo/standards
Unsubscribe: [email protected]
_______________________________________________

Reply via email to