Sync expirationStartTimestamp on outgoing messages

Linked devices need to know when to start the clock.
This commit is contained in:
lilia 2016-09-28 17:37:57 -07:00
parent 6074a29046
commit ad2174e279
3 changed files with 13 additions and 5 deletions

View file

@ -38996,7 +38996,7 @@ MessageSender.prototype = {
}.bind(this));
},
sendSyncMessage: function(encodedDataMessage, timestamp, destination) {
sendSyncMessage: function(encodedDataMessage, timestamp, destination, expirationStartTimestamp) {
var myNumber = textsecure.storage.user.getNumber();
var myDevice = textsecure.storage.user.getDeviceId();
if (myDevice == 1) {
@ -39010,6 +39010,9 @@ MessageSender.prototype = {
if (destination) {
sentMessage.destination = destination;
}
if (expirationStartTimestamp) {
sentMessage.expirationStartTimestamp = expirationStartTimestamp;
}
var syncMessage = new textsecure.protobuf.SyncMessage();
syncMessage.sent = sentMessage;
var contentMessage = new textsecure.protobuf.Content();