Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Move feature flag check for new session toast
Browse files Browse the repository at this point in the history
Forgot the path where it checks on startup. Just put it in recheck which covers everything.

Fixes element-hq/element-web#11921
  • Loading branch information
dbkr committed Jan 17, 2020
1 parent 158bf3d commit c7ddba7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/DeviceListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,16 @@ export default class DeviceListener {

_onDevicesUpdated = (users) => {
if (!users.includes(MatrixClientPeg.get().getUserId())) return;
if (!SettingsStore.isFeatureEnabled("feature_cross_signing")) return;
this.recheck();
}

_onDeviceVerificationChanged = (users) => {
if (!users.includes(MatrixClientPeg.get().getUserId())) return;
if (!SettingsStore.isFeatureEnabled("feature_cross_signing")) return;
this.recheck();
}

async recheck() {
if (!SettingsStore.isFeatureEnabled("feature_cross_signing")) return;
const cli = MatrixClientPeg.get();

if (!cli.isCryptoEnabled()) return false;
Expand Down

0 comments on commit c7ddba7

Please sign in to comment.