diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-06-14 16:59:07 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-06-14 16:59:07 +0200 |
commit | 7f1a4a6fb8f9a56236a3278b5f57348e61590948 (patch) | |
tree | 6fb9c6dc95f4206cbe5d8772139a082f33242a26 /src/eu/siacs/conversations/services/XmppConnectionService.java | |
parent | 7bdee8c19b642110882c71350557f6557857a143 (diff) |
infite scrolling
Diffstat (limited to 'src/eu/siacs/conversations/services/XmppConnectionService.java')
-rw-r--r-- | src/eu/siacs/conversations/services/XmppConnectionService.java | 8 |
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; |