Kevin suggested to use both (before..after) and i see no way to query first 10 or last 10, its a must have. I know the count may be omitted and that makes it more difficult because if i query always 10 - before then i may fetch more than i need - its a waste
On Mon, Mar 5, 2018 at 2:12 PM, Philipp Hörist <[email protected]> wrote: > <iq type='set' id='q29302'> > <query xmlns='urn:xmpp:mam:2'> > <x xmlns='jabber:x:data' type='submit'> > <field var='FORM_TYPE' type='hidden'> > <value>urn:xmpp:mam:2</value> > </field> > </x> > <set xmlns='http://jabber.org/protocol/rsm'> > <max>10</max> > <before/> > </set> > </query> > </iq> > > This gives you the last 10 messages of the whole Archive, you can add time > / jid filtering to get the last 10 from a JID or the last 10 inside a > timeframe > > 2018-03-05 14:06 GMT+01:00 Lazar Otasevic <[email protected]>: > >> because, why not. clients should be able to choose direction i guess. not >> every needs to work the same? >> >> On Mon, Mar 5, 2018 at 1:56 PM, Philipp Hörist <[email protected]> >> wrote: >> >>> >>> 2018-03-05 13:42 GMT+01:00 Lazar <[email protected]>: >>> >>>> yes we need explicit controll to request last 10 or first 10 results >>>> then, i dont see it possible now >>>> >>>> >>>> >>> why do you need that? You can definitly do a query like that, but i dont >>> see why you ever want to do that. >>> >>> _______________________________________________ >>> 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] >> _______________________________________________ >> >> > > _______________________________________________ > 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] _______________________________________________
