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
This commit is contained in:
parent
158bf3d1fa
commit
c7ddba786b
1 changed files with 1 additions and 2 deletions
|
@ -56,17 +56,16 @@ export default class DeviceListener {
|
||||||
|
|
||||||
_onDevicesUpdated = (users) => {
|
_onDevicesUpdated = (users) => {
|
||||||
if (!users.includes(MatrixClientPeg.get().getUserId())) return;
|
if (!users.includes(MatrixClientPeg.get().getUserId())) return;
|
||||||
if (!SettingsStore.isFeatureEnabled("feature_cross_signing")) return;
|
|
||||||
this.recheck();
|
this.recheck();
|
||||||
}
|
}
|
||||||
|
|
||||||
_onDeviceVerificationChanged = (users) => {
|
_onDeviceVerificationChanged = (users) => {
|
||||||
if (!users.includes(MatrixClientPeg.get().getUserId())) return;
|
if (!users.includes(MatrixClientPeg.get().getUserId())) return;
|
||||||
if (!SettingsStore.isFeatureEnabled("feature_cross_signing")) return;
|
|
||||||
this.recheck();
|
this.recheck();
|
||||||
}
|
}
|
||||||
|
|
||||||
async recheck() {
|
async recheck() {
|
||||||
|
if (!SettingsStore.isFeatureEnabled("feature_cross_signing")) return;
|
||||||
const cli = MatrixClientPeg.get();
|
const cli = MatrixClientPeg.get();
|
||||||
|
|
||||||
if (!cli.isCryptoEnabled()) return false;
|
if (!cli.isCryptoEnabled()) return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue