Don't try to set crypto options without crypto enabled

This commit is contained in:
David Baker 2020-01-13 21:54:14 +00:00
parent e47240d838
commit 9a1be1a24d

View file

@ -1505,7 +1505,6 @@ export default createReactClass({
"blacklistUnverifiedDevices", "blacklistUnverifiedDevices",
); );
cli.setGlobalBlacklistUnverifiedDevices(blacklistEnabled); cli.setGlobalBlacklistUnverifiedDevices(blacklistEnabled);
}
// With cross-signing enabled, we send to unknown devices // With cross-signing enabled, we send to unknown devices
// without prompting. Any bad-device status the user should // without prompting. Any bad-device status the user should
@ -1515,6 +1514,8 @@ export default createReactClass({
cli.setGlobalErrorOnUnknownDevices( cli.setGlobalErrorOnUnknownDevices(
!SettingsStore.isFeatureEnabled("feature_cross_signing"), !SettingsStore.isFeatureEnabled("feature_cross_signing"),
); );
}
}, },
showScreen: function(screen, params) { showScreen: function(screen, params) {