mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 09:42:17 -05:00
Merge pull request #1641 from fiaxh/uuid-fix
Correct uuid check according to RFC 4122
This commit is contained in:
commit
5dd5685885
@ -363,7 +363,7 @@ public class Message extends AbstractEntity {
|
||||
&& this.counterpart.equals(message.getCounterpart())
|
||||
&& (body.equals(otherBody)
|
||||
||(message.getEncryption() == Message.ENCRYPTION_PGP
|
||||
&& message.getRemoteMsgId().matches("[0-9a-f]{8}-[0-9a-f]{4}-4[0-9]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"))) ;
|
||||
&& message.getRemoteMsgId().matches("[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"))) ;
|
||||
} else {
|
||||
return this.remoteMsgId == null
|
||||
&& this.counterpart.equals(message.getCounterpart())
|
||||
|
Loading…
Reference in New Issue
Block a user