mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 04:09:49 +00:00
Sync expirationStartTimestamp on outgoing messages
Linked devices need to know when to start the clock.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user