require encrypted to be the same for messages to get merged
This commit is contained in:
parent
8f8d4e320d
commit
1cc16161ef
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue