aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-01-15 11:52:02 +0100
committerChristian Schneppe <christian@pix-art.de>2017-01-15 11:52:02 +0100
commit4f0a3c99a0d9f1e5252555c7ba5c00b00a110965 (patch)
treee251fdb592c0175d217723d1085ec52fde68dc92 /src/main/java
parentbac5992e429a18a63a59cb7f63a213d9a5f79ed0 (diff)
don't include 'before' reference in mam queries bound by timestamp
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/pixart/messenger/services/MessageArchiveService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/services/MessageArchiveService.java b/src/main/java/de/pixart/messenger/services/MessageArchiveService.java
index 9e2c6febd..4a1fe2a87 100644
--- a/src/main/java/de/pixart/messenger/services/MessageArchiveService.java
+++ b/src/main/java/de/pixart/messenger/services/MessageArchiveService.java
@@ -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;