Sync expirationStartTimestamp on outgoing messages
Linked devices need to know when to start the clock.
This commit is contained in:
parent
6074a29046
commit
ad2174e279
3 changed files with 13 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue