clarify why we dont need dialog on network error

This commit is contained in:
Bruno Windels 2019-06-04 16:11:49 +02:00
parent a11deffe5e
commit 629b776820

View file

@ -131,7 +131,8 @@ module.exports = React.createClass({
} catch (e) {
const code = e.errcode || e.statusCode;
// only show the dialog if failing for something other than a network error
// (e.g. no errcode or statusCode)
// (e.g. no errcode or statusCode) as that case the redaction end up in the
// detached queue and we show the room status bar to allow retry
if (typeof code !== "undefined") {
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
// display error message stating you couldn't delete this.