processVerifiedMessage: Trigger keychange event when key differs

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-06-19 16:34:00 -07:00
parent 0db2ef9e7f
commit 0056cbefc1
2 changed files with 62 additions and 3 deletions

View file

@ -604,6 +604,10 @@
|| (isPresent && !isEqual)
|| (isPresent && identityRecord.get('verified') !== VerifiedStatus.VERIFIED))) {
if (!isPresent || !isEqual) {
this.trigger('keychange', identifier);
}
textsecure.storage.protocol.saveIdentityWithAttributes(identifier, {
publicKey : publicKey,
verified : verifiedStatus,
@ -612,8 +616,8 @@
nonblockingApproval : true
}).then(resolve, reject);
}
});
});
}.bind(this));
}.bind(this));
},
isUntrusted: function(identifier) {
if (identifier === null || identifier === undefined) {