From d1858de39bf42194d17784e638732281f6b6027b Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 13 Jun 2017 13:33:50 -0700 Subject: [PATCH] Default nonblockingApproval to false saveIdentity is invoked with only two arguments from the protocol layer, in which case we should default nonblockingApproval to false. https://github.com/WhisperSystems/Signal-Android/blob/76c28cfa7a12b386ce5f62316247e843ceef3290/src/org/thoughtcrime/securesms/crypto/storage/TextSecureIdentityKeyStore.java#L87 // FREEBIE --- js/signal_protocol_store.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/signal_protocol_store.js b/js/signal_protocol_store.js index a4f3c5205..4aa5f8755 100644 --- a/js/signal_protocol_store.js +++ b/js/signal_protocol_store.js @@ -409,6 +409,9 @@ if (!(publicKey instanceof ArrayBuffer)) { publicKey = convertToArrayBuffer(publicKey); } + if (typeof nonblockingApproval !== 'boolean') { + nonblockingApproval = false; + } var number = textsecure.utils.unencodeNumber(identifier)[0]; return new Promise(function(resolve, reject) { var identityKey = new IdentityKey({id: number});