processVerifiedMessage: Archive all sessions when key changes

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-06-20 10:56:04 -07:00
parent 827addf628
commit 7bfb66b13b
2 changed files with 10 additions and 7 deletions

View file

@ -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() {