aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/services/XmppConnectionService.java
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-06-14 16:59:07 +0200
committeriNPUTmice <daniel@gultsch.de>2014-06-14 16:59:07 +0200
commit7f1a4a6fb8f9a56236a3278b5f57348e61590948 (patch)
tree6fb9c6dc95f4206cbe5d8772139a082f33242a26 /src/eu/siacs/conversations/services/XmppConnectionService.java
parent7bdee8c19b642110882c71350557f6557857a143 (diff)
infite scrolling
Diffstat (limited to 'src/eu/siacs/conversations/services/XmppConnectionService.java')
-rw-r--r--src/eu/siacs/conversations/services/XmppConnectionService.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java
index f6bf4307..3ba1fdfd 100644
--- a/src/eu/siacs/conversations/services/XmppConnectionService.java
+++ b/src/eu/siacs/conversations/services/XmppConnectionService.java
@@ -931,6 +931,14 @@ public class XmppConnectionService extends Service {
});
return this.conversations;
}
+
+ public List<Message> getMoreMessages(Conversation conversation,long timestamp) {
+ List<Message> messages = databaseBackend.getMessages(conversation, 50, timestamp);
+ for(Message message : messages) {
+ message.setConversation(conversation);
+ }
+ return messages;
+ }
public List<Account> getAccounts() {
return this.accounts;