mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-21 10:16:50 +00:00
Pass in non/blockingApproval args to saveIdentity
Multiple cases here: 1. setting our own key on registration 1. changing identities from a safety number change dialog Note that removeIdentityKey runs before saveIdentity, so we'll always end up with firstUse: true on our own key. // FREEBIE
This commit is contained in:
@@ -504,7 +504,7 @@
|
||||
throw 'No conflicts to resolve';
|
||||
}
|
||||
|
||||
return textsecure.storage.protocol.saveIdentity(number, identityKey).then(function() {
|
||||
return textsecure.storage.protocol.saveIdentity(number, identityKey, true, true).then(function() {
|
||||
var promise = Promise.resolve();
|
||||
var conflicts = this.messageCollection.filter(function(message) {
|
||||
return message.hasKeyConflict(number);
|
||||
|
||||
@@ -204,7 +204,7 @@
|
||||
// update our own identity key, which may have changed
|
||||
// if we're relinking after a reinstall on the master device
|
||||
var putIdentity = textsecure.storage.protocol.saveIdentity.bind(
|
||||
null, number, identityKeyPair.pubKey
|
||||
null, number, identityKeyPair.pubKey, true, true
|
||||
);
|
||||
textsecure.storage.protocol.removeIdentityKey(number).then(putIdentity, putIdentity);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user