add PHASE_LOADING to SetupEncryptionStore to avoid flashing cross-signing setup

This commit is contained in:
Matthew Hodgson 2021-03-08 23:28:44 +00:00
parent c543f0a2d0
commit d388f877b4
3 changed files with 13 additions and 8 deletions

View file

@ -23,6 +23,7 @@ import VerificationRequestDialog from '../../views/dialogs/VerificationRequestDi
import * as sdk from '../../../index';
import {
SetupEncryptionStore,
PHASE_LOADING,
PHASE_INTRO,
PHASE_BUSY,
PHASE_DONE,
@ -222,7 +223,7 @@ export default class SetupEncryptionBody extends React.Component {
</div>
</div>
);
} else if (phase === PHASE_BUSY) {
} else if (phase === PHASE_BUSY || phase === PHASE_LOADING) {
const Spinner = sdk.getComponent('views.elements.Spinner');
return <Spinner />;
} else {