rotateSignedPrekeys: Fix 'res is not defined' error

pull/749/head
Scott Nonnenberg 7 years ago
parent cdfdd6b381
commit aab4f10509
No known key found for this signature in database
GPG Key ID: A4931C09644C654B

@ -37994,12 +37994,12 @@ var TextSecureServer = (function() {
keyId : res.keyId, keyId : res.keyId,
publicKey : res.keyPair.pubKey, publicKey : res.keyPair.pubKey,
signature : res.signature signature : res.signature
}); }).then(function() {
}).then(function() { textsecure.storage.put('signedKeyId', signedKeyId + 1);
textsecure.storage.put('signedKeyId', signedKeyId + 1); textsecure.storage.remove('signedKeyRotationRejected');
textsecure.storage.remove('signedKeyRotationRejected'); return store.storeSignedPreKey(res.keyId, res.keyPair).then(function() {
return store.storeSignedPreKey(res.keyId, res.keyPair).then(function() { return cleanSignedPreKeys();
return cleanSignedPreKeys(); });
}); });
}).catch(function(e) { }).catch(function(e) {
console.log( console.log(

@ -132,12 +132,12 @@
keyId : res.keyId, keyId : res.keyId,
publicKey : res.keyPair.pubKey, publicKey : res.keyPair.pubKey,
signature : res.signature signature : res.signature
}); }).then(function() {
}).then(function() { textsecure.storage.put('signedKeyId', signedKeyId + 1);
textsecure.storage.put('signedKeyId', signedKeyId + 1); textsecure.storage.remove('signedKeyRotationRejected');
textsecure.storage.remove('signedKeyRotationRejected'); return store.storeSignedPreKey(res.keyId, res.keyPair).then(function() {
return store.storeSignedPreKey(res.keyId, res.keyPair).then(function() { return cleanSignedPreKeys();
return cleanSignedPreKeys(); });
}); });
}).catch(function(e) { }).catch(function(e) {
console.log( console.log(

Loading…
Cancel
Save