diff options
-rw-r--r-- | src/eu/siacs/conversations/entities/Message.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/entities/Message.java b/src/eu/siacs/conversations/entities/Message.java index 48473afe..09beff52 100644 --- a/src/eu/siacs/conversations/entities/Message.java +++ b/src/eu/siacs/conversations/entities/Message.java @@ -315,8 +315,10 @@ public class Message extends AbstractEntity { if (message == null) { return false; } - return (this.getType() == Message.TYPE_TEXT + return (message.getType() == Message.TYPE_TEXT + && message.getEncryption() != Message.ENCRYPTION_PGP && this.getType() == message.getType() + && this.getEncryption() == message.getEncryption() && this.getCounterpart().equals(message.getCounterpart()) && (message.getTimeSent() - this.getTimeSent()) <= 20000 && ((this .getStatus() == message.getStatus()) || (this.getStatus() == Message.STATUS_SEND && message |