processVerifiedMessage: Archive all sessions when key changes
FREEBIE
This commit is contained in:
parent
827addf628
commit
7bfb66b13b
2 changed files with 10 additions and 7 deletions
|
@ -111,13 +111,13 @@
|
|||
}.bind(this)).then(function() {
|
||||
this.addVerifiedChange(this.id, verified === VERIFIED, {local: !options.viaSyncMessage});
|
||||
if (!options.viaSyncMessage) {
|
||||
this.sendVerifySyncMessage(this.id, verified);
|
||||
return this.sendVerifySyncMessage(this.id, verified);
|
||||
}
|
||||
}.bind(this));
|
||||
},
|
||||
sendVerifySyncMessage: function(number, state) {
|
||||
textsecure.storage.protocol.loadIdentityKey(number).then(function(key) {
|
||||
textsecure.messaging.syncVerification(number, state, key);
|
||||
return textsecure.messaging.syncVerification(number, state, key);
|
||||
});
|
||||
},
|
||||
isVerified: function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue