don't include 'before' reference in mam queries bound by timestamp

This commit is contained in:
Daniel Gultsch 2017-01-12 20:56:55 +01:00
parent fd7216b6a0
commit c03e3b5965
1 changed files with 3 additions and 1 deletions

View File

@ -111,7 +111,9 @@ public class MessageArchiveService implements OnAdvancedStreamFeaturesLoaded {
return null;
}
final Query query = new Query(conversation, start, end,PagingOrder.REVERSE);
query.reference = conversation.getFirstMamReference();
if (start==0) {
query.reference = conversation.getFirstMamReference();
}
this.queries.add(query);
this.execute(query);
return query;