fix tests by reverting if removal

pull/21833/head
Michael Telatynski 2021-01-28 11:00:04 +00:00
parent 1761a4ec80
commit fd4109b8ad
1 changed files with 3 additions and 0 deletions

View File

@ -364,6 +364,9 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
private async postLoginSetup() {
const cli = MatrixClientPeg.get();
const cryptoEnabled = cli.isCryptoEnabled();
if (!cryptoEnabled) {
this.onLoggedIn();
}
const promisesList = [this.firstSyncPromise.promise];
if (cryptoEnabled) {