From 1d9b4e959d70c2f008574f9a75c7eeb4b47c63ef Mon Sep 17 00:00:00 2001 From: steckbrief Date: Sat, 17 Oct 2015 14:16:08 +0200 Subject: added comment for clarification, why the timestamp of the first msg of msg list is needed to query older msgs with mam --- .../ui/listeners/ConversationSwipeRefreshListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') 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); -- cgit v1.2.3