From 7565568c6a8964306bee680b8a3d1c6f0a6fe347 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 14 Jul 2016 09:01:15 +0200 Subject: don't take stanza-id into account when deduping muc pms --- src/main/java/eu/siacs/conversations/entities/Message.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/eu/siacs/conversations/entities') diff --git a/src/main/java/eu/siacs/conversations/entities/Message.java b/src/main/java/eu/siacs/conversations/entities/Message.java index f38875e6e..357af7643 100644 --- a/src/main/java/eu/siacs/conversations/entities/Message.java +++ b/src/main/java/eu/siacs/conversations/entities/Message.java @@ -377,7 +377,7 @@ public class Message extends AbstractEntity { } public boolean similar(Message message) { - if (this.serverMsgId != null && message.getServerMsgId() != null) { + if (type != TYPE_PRIVATE && this.serverMsgId != null && message.getServerMsgId() != null) { return this.serverMsgId.equals(message.getServerMsgId()); } else if (this.body == null || this.counterpart == null) { return false; -- cgit v1.2.3