aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/services/XmppConnectionService.java
diff options
context:
space:
mode:
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;