From e722ef6477742406123718b316ed1abb1d2ce2bb Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 2 Jun 2017 13:00:02 +0200 Subject: [PATCH] do not accept LMC for files --- src/main/java/eu/siacs/conversations/entities/Conversation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/entities/Conversation.java b/src/main/java/eu/siacs/conversations/entities/Conversation.java index 40a86ad4..aee51cdc 100644 --- a/src/main/java/eu/siacs/conversations/entities/Conversation.java +++ b/src/main/java/eu/siacs/conversations/entities/Conversation.java @@ -268,7 +268,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl if (counterpart.equals(message.getCounterpart()) && ((message.getStatus() == Message.STATUS_RECEIVED) == received) && (carbon == message.isCarbon() || received) ) { - if (id.equals(message.getRemoteMsgId())) { + if (id.equals(message.getRemoteMsgId()) && !message.isFileOrImage() && !message.treatAsDownloadable()) { return message; } else { return null;