aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/entities
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-08-30 11:24:37 +0200
committerDaniel Gultsch <daniel@gultsch.de>2015-08-30 11:24:37 +0200
commitb0c19d6bac396b5f30432a8ea5e1ef5e89a89048 (patch)
tree5eeba1b95be94e15fe3bdce55d37d28beda40706 /src/main/java/eu/siacs/conversations/entities
parent8f4b7686c94c52563c29f100cd25599ac08a7bb2 (diff)
fixed bug that prevented newly opened conversations to load the entire history via mam. fixes #1328
Diffstat (limited to 'src/main/java/eu/siacs/conversations/entities')
-rw-r--r--src/main/java/eu/siacs/conversations/entities/Conversation.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Conversation.java b/src/main/java/eu/siacs/conversations/entities/Conversation.java
index e6c044a1..1af87c42 100644
--- a/src/main/java/eu/siacs/conversations/entities/Conversation.java
+++ b/src/main/java/eu/siacs/conversations/entities/Conversation.java
@@ -673,6 +673,10 @@ public class Conversation extends AbstractEntity implements Blockable {
}
}
+ public void resetLastMessageTransmitted() {
+ this.setAttribute(ATTRIBUTE_LAST_MESSAGE_TRANSMITTED,String.valueOf(-1));
+ }
+
public boolean setLastMessageTransmitted(long value) {
long before = getLastMessageTransmitted();
if (value - before > 1000) {