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

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;