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; return null;
} }
final Query query = new Query(conversation, start, end,PagingOrder.REVERSE); 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.queries.add(query);
this.execute(query); this.execute(query);
return query; return query;