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

Commit

Permalink
Merge pull request #3865 from matrix-org/dbkr/new_session_toast_featu…
Browse files Browse the repository at this point in the history
…re_flag

Move feature flag check for new session toast
  • Loading branch information
dbkr authored Jan 17, 2020
2 parents 158bf3d + c7ddba7 commit 5584068
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 5584068

Please sign in to comment.