|
|
|
@ -308,9 +308,11 @@ OutgoingMessage.prototype = {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
sendToNumber(number) {
|
|
|
|
|
if (true /* skipEncryption */)
|
|
|
|
|
{
|
|
|
|
|
const options = {
|
|
|
|
|
pub_key: number,
|
|
|
|
|
data: this.getPlaintext(),
|
|
|
|
|
data: StringView.bytesToBase64(this.getPlaintext()),
|
|
|
|
|
ttl: 2 * 24 * 60 * 60
|
|
|
|
|
};
|
|
|
|
|
return this.lokiserver.sendMessage(options).then(
|
|
|
|
@ -320,7 +322,9 @@ OutgoingMessage.prototype = {
|
|
|
|
|
},
|
|
|
|
|
(error) => console.log('Loki sendMessage failed')
|
|
|
|
|
);
|
|
|
|
|
/*
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
return this.getStaleDeviceIdsForNumber(number).then(updateDevices =>
|
|
|
|
|
this.getKeysForNumber(number, updateDevices)
|
|
|
|
|
.then(this.reloadDevicesAndSend(number, true))
|
|
|
|
@ -342,6 +346,7 @@ OutgoingMessage.prototype = {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
);*/
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|