diff options
Diffstat (limited to 'src/eu/siacs/conversations/services')
-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; |