From c7ddba786bdabaf61f473b5162c8fe7f945920f4 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 17 Jan 2020 20:06:44 +0000 Subject: [PATCH] Move feature flag check for new session toast Forgot the path where it checks on startup. Just put it in recheck which covers everything. Fixes https://github.com/vector-im/riot-web/issues/11921 --- src/DeviceListener.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/DeviceListener.js b/src/DeviceListener.js index 15ca931fc8..9ae6a62ab1 100644 --- a/src/DeviceListener.js +++ b/src/DeviceListener.js @@ -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;