Error when Requesting the Last Page in a Result Set History Message

Hi all. Iam newbie.

I installed Openfire on my localhost to build chat web app.

On frontend, Iam using Strophejs lib.

In openfire, Iam using “Open Archive” plugin to archive message.

To get history messages, i do like XEP-0136 and XEP-0059.

When get last page of list conversation with stanza:

      <set xmlns="http://jabber.org/protocol/rsm">

2

The result shows 2 first conversations, not 2 last conversations.

I have questions:

  1. not working ?

  2. How to fix ?

Thanks all.