powered by Jive Software

OpenArchive: Get last message

How i can retrieve last conversation and last message in conversation?

According to “XEP-0059: Result Set Management”, i need to send this requests:

For last conversation:

<list xmlns=‘urn:xmpp:archive’

    with='juliet@capulet.com'>

<set xmlns='[http://jabber.org/protocol/rsm](http://jabber.org/protocol/rsm)'>

1

For last message in conversation:

<retrieve xmlns=‘urn:xmpp:archive’

        with='juliet@capulet.com/chamber'

start=‘1469-07-21T02:56:15Z’>

<set xmlns='[http://jabber.org/protocol/rsm](http://jabber.org/protocol/rsm)'>

1

But both requests returns first record record instead of last…

Does OpenArchive plugin handle XEP-0059 requests correctly?

After some kind of experiments i figured out that i can request last conversation using this request:

<list xmlns=‘urn:xmpp:archive’

    with='juliet@capulet.com'>

<set xmlns='[http://jabber.org/protocol/rsm](http://jabber.org/protocol/rsm)'>

1

999999999999

But i can’t retrieve last message using this method… It returns only empty answer.

PS: Please help me figure out how to retrieve last message in conversation using only one request. Thank you.

Did you resolve this issue? I am having same issue and even with element, openfire send back the first set of results.

In this Post I tried to describe the problem and solution.