rotateSignedPrekeys: Fix 'res is not defined' error

This commit is contained in:
Scott Nonnenberg 2017-11-22 15:08:04 -08:00
parent cdfdd6b381
commit aab4f10509
No known key found for this signature in database
GPG key ID: A4931C09644C654B
2 changed files with 12 additions and 12 deletions

View file

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

View file

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