unused function
This commit is contained in:
parent
0abcb5c78d
commit
655627209a
1 changed files with 0 additions and 36 deletions
|
@ -1422,42 +1422,6 @@ export default React.createClass({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_handleSyncError(e) {
|
|
||||||
if (e instanceof Matrix.InvalidStoreError) {
|
|
||||||
if (e.reason === Matrix.InvalidStoreError.TOGGLED_LAZY_LOADING) {
|
|
||||||
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,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
} 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();
|
|
||||||
}).then(() => {
|
|
||||||
PlatformPeg.get().reload();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
showScreen: function(screen, params) {
|
showScreen: function(screen, params) {
|
||||||
if (screen == 'register') {
|
if (screen == 'register') {
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue