On 27 Oct 2015, at 10:45, Michael Uvarov <[email protected]> wrote:
> 
> Hi,
> 
> I have a question about XEP-0313.
> There is part that is counterintuitive:
> 
> Example 1. A user queries their archive for messages
> <iq type='set' id='juliet1'>
> 
>   
> <query xmlns='urn:xmpp:mam:1' queryid='f27' />
> </iq>
> 
> 
> Why should we send "set" IQ to 
> get
>  messages? It was "get" in the older versions of the XEP.
> What was the reason to change it?

Because the ‘get’ is what’s used to ask for the form fields, and the ‘set’ is 
used to submit the fields.

We end up with slightly odd terminology, because the action you’re asking is to 
fetch stuff, but it’s fairly consistent for ‘get’ to fetch the form and ‘set’ 
to submit it.

/K

Reply via email to