|
|
@ -720,6 +720,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
function createSentMessage(data) {
|
|
|
|
function createSentMessage(data) {
|
|
|
|
const now = Date.now();
|
|
|
|
const now = Date.now();
|
|
|
|
|
|
|
|
|
|
|
|
return new Whisper.Message({
|
|
|
|
return new Whisper.Message({
|
|
|
|
source: textsecure.storage.user.getNumber(),
|
|
|
|
source: textsecure.storage.user.getNumber(),
|
|
|
|
sourceDevice: data.device,
|
|
|
|
sourceDevice: data.device,
|
|
|
@ -728,7 +729,9 @@
|
|
|
|
conversationId: data.destination,
|
|
|
|
conversationId: data.destination,
|
|
|
|
type: 'outgoing',
|
|
|
|
type: 'outgoing',
|
|
|
|
sent: true,
|
|
|
|
sent: true,
|
|
|
|
expirationStartTimestamp: data.expirationStartTimestamp,
|
|
|
|
expirationStartTimestamp: data.expirationStartTimestamp
|
|
|
|
|
|
|
|
? Math.min(data.expirationStartTimestamp, Date.now())
|
|
|
|
|
|
|
|
: null,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|