mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-24 03:27:59 +01:00
Fix previous archive page requested incorrectly in MamManager
Previous page should be before the first message in the previous result set, not the last. Fixes SMACK-843.
This commit is contained in:
parent
fa7297019d
commit
0332fa54d1
1 changed files with 1 additions and 1 deletions
|
@ -995,7 +995,7 @@ public final class MamManager extends Manager {
|
|||
public List<Message> pagePrevious(int count) throws NoResponseException, XMPPErrorException,
|
||||
NotConnectedException, NotLoggedInException, InterruptedException {
|
||||
RSMSet previousResultRsmSet = getPreviousRsmSet();
|
||||
RSMSet requestRsmSet = new RSMSet(count, previousResultRsmSet.getLast(), RSMSet.PageDirection.before);
|
||||
RSMSet requestRsmSet = new RSMSet(count, previousResultRsmSet.getFirst(), RSMSet.PageDirection.before);
|
||||
return page(requestRsmSet);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue