diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-02-24 15:53:31 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-02-24 15:53:31 +0100 |
commit | 47ad6bf5b548018cbbb7ba1c0b8d5fd922ba2611 (patch) | |
tree | 91fc2fbf594f11d08965278c71b78e0375f77e54 /src/main/java/de/pixart/messenger/entities | |
parent | cd34002f7c8686cdd7a3613e33ef06f78f19072e (diff) |
MAM: look at total count for completness. parse fin correctly
Diffstat (limited to 'src/main/java/de/pixart/messenger/entities')
-rw-r--r-- | src/main/java/de/pixart/messenger/entities/Conversation.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/entities/Conversation.java b/src/main/java/de/pixart/messenger/entities/Conversation.java index 223e26dd2..b41805987 100644 --- a/src/main/java/de/pixart/messenger/entities/Conversation.java +++ b/src/main/java/de/pixart/messenger/entities/Conversation.java @@ -991,9 +991,9 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl } } - public void prepend(Message message) { + public void prepend(int offset, Message message) { synchronized (this.messages) { - this.messages.add(0, message); + this.messages.add(Math.min(offset, this.messages.size()), message); } } |