mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 10:45:51 +03:00
Fix logout when Olm failed to load.
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
4ab53607a0
commit
1469690835
1 changed files with 2 additions and 3 deletions
|
@ -21,7 +21,6 @@ import * as sdk from '../../../index';
|
||||||
import dis from '../../../dispatcher';
|
import dis from '../../../dispatcher';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import {MatrixClientPeg} from '../../../MatrixClientPeg';
|
import {MatrixClientPeg} from '../../../MatrixClientPeg';
|
||||||
import SettingsStore from "../../../settings/SettingsStore";
|
|
||||||
|
|
||||||
export default class LogoutDialog extends React.Component {
|
export default class LogoutDialog extends React.Component {
|
||||||
defaultProps = {
|
defaultProps = {
|
||||||
|
@ -36,8 +35,8 @@ export default class LogoutDialog extends React.Component {
|
||||||
this._onSetRecoveryMethodClick = this._onSetRecoveryMethodClick.bind(this);
|
this._onSetRecoveryMethodClick = this._onSetRecoveryMethodClick.bind(this);
|
||||||
this._onLogoutConfirm = this._onLogoutConfirm.bind(this);
|
this._onLogoutConfirm = this._onLogoutConfirm.bind(this);
|
||||||
|
|
||||||
const lowBandwidth = SettingsStore.getValue("lowBandwidth");
|
const cli = MatrixClientPeg.get();
|
||||||
const shouldLoadBackupStatus = !lowBandwidth && !MatrixClientPeg.get().getKeyBackupEnabled();
|
const shouldLoadBackupStatus = cli.isCryptoEnabled() && !cli.getKeyBackupEnabled();
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
shouldLoadBackupStatus: shouldLoadBackupStatus,
|
shouldLoadBackupStatus: shouldLoadBackupStatus,
|
||||||
|
|
Loading…
Reference in a new issue