Default nonblockingApproval to false
saveIdentity is invoked with only two arguments from the protocol layer, in
which case we should default nonblockingApproval to false.
76c28cfa7a/src/org/thoughtcrime/securesms/crypto/storage/TextSecureIdentityKeyStore.java (L87)
// FREEBIE
This commit is contained in:
parent
261ec003ee
commit
d1858de39b
1 changed files with 3 additions and 0 deletions
|
@ -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});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue