only get component when needed
This commit is contained in:
parent
824ad5e318
commit
130f3cc2ff
1 changed files with 2 additions and 2 deletions
|
@ -240,11 +240,11 @@ function _handleLoadSessionFailure(e) {
|
|||
|
||||
if (e instanceof Matrix.InvalidStoreError) {
|
||||
if (e.reason === Matrix.InvalidStoreError.TOGGLED_LAZY_LOADING) {
|
||||
const LazyLoadingResyncDialog =
|
||||
sdk.getComponent("views.dialogs.LazyLoadingResyncDialog");
|
||||
return Promise.resolve().then(() => {
|
||||
const lazyLoadEnabled = e.value;
|
||||
if (lazyLoadEnabled) {
|
||||
const LazyLoadingResyncDialog =
|
||||
sdk.getComponent("views.dialogs.LazyLoadingResyncDialog");
|
||||
return new Promise((resolve) => {
|
||||
Modal.createDialog(LazyLoadingResyncDialog, {
|
||||
onFinished: resolve,
|
||||
|
|
Loading…
Reference in a new issue