processVerifiedMessage: Trigger keychange event when key differs
FREEBIE
This commit is contained in:
parent
0db2ef9e7f
commit
0056cbefc1
2 changed files with 62 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue