don't take stanza-id into account when deduping muc pms

This commit is contained in:
Daniel Gultsch 2016-07-14 09:01:15 +02:00
parent 27690865a6
commit 223d50c1a0
1 changed files with 1 additions and 1 deletions

View File

@ -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;