aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2015-10-17 14:16:08 +0200
committersteckbrief <steckbrief@chefmail.de>2015-10-17 14:16:08 +0200
commit1d9b4e959d70c2f008574f9a75c7eeb4b47c63ef (patch)
tree8c2d5011b91309a840a36749a347d063af41b243 /src/main
parent0759a78727c1c36e621951a791b959c26d34f509 (diff)
added comment for clarification, why the timestamp of the first msg of msg list is needed to query older msgs with mam
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/thedevstack/conversationsplus/ui/listeners/ConversationSwipeRefreshListener.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/thedevstack/conversationsplus/ui/listeners/ConversationSwipeRefreshListener.java b/src/main/java/de/thedevstack/conversationsplus/ui/listeners/ConversationSwipeRefreshListener.java
index c815ba98..05591b74 100644
--- a/src/main/java/de/thedevstack/conversationsplus/ui/listeners/ConversationSwipeRefreshListener.java
+++ b/src/main/java/de/thedevstack/conversationsplus/ui/listeners/ConversationSwipeRefreshListener.java
@@ -34,7 +34,7 @@ public class ConversationSwipeRefreshListener implements SwipeRefreshLayout.OnRe
if (messageList.isEmpty()) {
timestamp = System.currentTimeMillis();
} else {
- timestamp = this.messageList.get(0).getTimeSent();
+ timestamp = this.messageList.get(0).getTimeSent(); // works only because of the ordering (last msg = first msg in list)
}
ConversationActivity activity = (ConversationActivity) fragment.getActivity();
activity.xmppConnectionService.loadMoreMessages(activity.getSelectedConversation(), timestamp, this.listener);