Skip to content

Commit

Permalink
also emit user trust has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
bwindels committed Apr 9, 2020
1 parent 65dd56f commit 70071ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/crypto/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,12 @@ Crypto.prototype._onDeviceListUserCrossSigningUpdated = async function(userId) {
// effectively disabling cross-signing until the user gets verified by the device
// that reset the keys
this._storeTrustedSelfKeys(null);
// emit cross-signing has been disabled
this.emit("crossSigning.keysChanged", {});
// as the trust for our own user has changed,
// also emit an event for this
this.emit("userTrustStatusChanged",
this._userId, this.checkUserTrust(userId));
}
} else {
await this._checkDeviceVerifications(userId);
Expand Down

0 comments on commit 70071ee

Please sign in to comment.