Rewrite most of the device storage stuff

This commit is contained in:
Matt Corallo
2015-01-19 09:56:48 -10:00
committed by lilia
parent f1f5914879
commit 1806210b26
6 changed files with 132 additions and 45 deletions

View File

@@ -67,6 +67,7 @@ window.textsecure.messaging = function() {
}
return axolotl.protocol.encryptMessageFor(deviceObjectList[i], message).then(function(encryptedMsg) {
textsecure.storage.devices.removeTempKeysFromDevice(deviceObjectList[i].encodedNumber);
jsonData[i] = {
type: encryptedMsg.type,
destinationDeviceId: textsecure.utils.unencodeNumber(deviceObjectList[i].encodedNumber)[1],