From 223d50c1a01e89fd76dfab77e15e6eee00796236 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 14 Jul 2016 09:01:15 +0200 Subject: [PATCH] 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(-) diff --git a/src/main/java/eu/siacs/conversations/entities/Message.java b/src/main/java/eu/siacs/conversations/entities/Message.java index 4fcfdbf0..9ab1da96 100644 --- a/src/main/java/eu/siacs/conversations/entities/Message.java +++ b/src/main/java/eu/siacs/conversations/entities/Message.java @@ -378,7 +378,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;