1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

show warning when LL is disabled but was enabled before

This commit is contained in:
Bruno Windels
2018-10-08 15:28:00 +02:00
parent 21cedbabf2
commit 48299bb154
3 changed files with 57 additions and 1 deletions

View File

@@ -250,6 +250,19 @@ function _handleLoadSessionFailure(e) {
onFinished: resolve,
});
});
} else {
// show warning about simultaneous use
// between LL/non-LL version on same host.
// as disabling LL when previously enabled
// is a strong indicator of this (/develop & /app)
const LazyLoadingDisabledDialog =
sdk.getComponent("views.dialogs.LazyLoadingDisabledDialog");
return new Promise((resolve) => {
Modal.createDialog(LazyLoadingDisabledDialog, {
onFinished: resolve,
host: window.location.host,
});
});
}
}).then(() => {
return MatrixClientPeg.get().store.deleteAllData();