Increase requiredProtocolVersion if quote includes @mention
This commit is contained in:
parent
9657c38987
commit
c2275b6aed
1 changed files with 9 additions and 0 deletions
|
@ -288,6 +288,15 @@ class Message {
|
|||
bodyRange.mentionUuid = range.mentionUuid;
|
||||
return bodyRange;
|
||||
});
|
||||
if (
|
||||
quote.bodyRanges.length &&
|
||||
(!proto.requiredProtocolVersion ||
|
||||
proto.requiredProtocolVersion <
|
||||
window.textsecure.protobuf.DataMessage.ProtocolVersion.MENTIONS)
|
||||
) {
|
||||
proto.requiredProtocolVersion =
|
||||
window.textsecure.protobuf.DataMessage.ProtocolVersion.MENTIONS;
|
||||
}
|
||||
}
|
||||
if (this.expireTimer) {
|
||||
proto.expireTimer = this.expireTimer;
|
||||
|
|
Loading…
Reference in a new issue