mirror of https://github.com/vector-im/riot-web
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/11921pull/21833/head
parent
158bf3d1fa
commit
c7ddba786b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue