aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Gultsch <inputmice@siacs.eu>2015-01-03 18:22:26 +0100
committerDaniel Gultsch <inputmice@siacs.eu>2015-01-03 18:22:26 +0100
commitfc8bd64bfdc1586f371392c96c2daefb3aed1d41 (patch)
treec5399afb0c98a76ef634e965493ec781835d5591 /src
parentbe7de054be6b31b82947b9c641c8b1d5bbefb284 (diff)
void messages getting reloaded through mam after clear history
Diffstat (limited to '')
-rw-r--r--src/main/java/eu/siacs/conversations/services/XmppConnectionService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
index ec904fbb..6bdc55a1 100644
--- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
+++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
@@ -2159,6 +2159,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
public void clearConversationHistory(final Conversation conversation) {
conversation.clearMessages();
+ conversation.setHasMessagesLeftOnServer(false); //avoid messages getting loaded through mam
new Thread(new Runnable() {
@Override
public void run() {