diff --git a/js/signal_protocol_store.js b/js/signal_protocol_store.js index 1f9325da8..62f193e7e 100644 --- a/js/signal_protocol_store.js +++ b/js/signal_protocol_store.js @@ -457,7 +457,7 @@ nonblockingApproval : nonblockingApproval, }).then(function() { resolve(false); - }); + }, reject); } else if (!equalArrayBuffers(oldpublicKey, publicKey)) { console.log("Replacing existing identity..."); var previousStatus = identityRecord.get('verified'); @@ -486,7 +486,7 @@ nonblockingApproval : nonblockingApproval, }).then(function() { resolve(false); - }); + }, reject); } else { resolve(false); }