don't take stanza-id into account when deduping muc pms
This commit is contained in:
parent
27690865a6
commit
223d50c1a0
|
@ -378,7 +378,7 @@ public class Message extends AbstractEntity {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean similar(Message message) {
|
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());
|
return this.serverMsgId.equals(message.getServerMsgId());
|
||||||
} else if (this.body == null || this.counterpart == null) {
|
} else if (this.body == null || this.counterpart == null) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue