diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index 94d7f1c422..a212fe336f 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -17,6 +17,7 @@ limitations under the License. import MatrixClientPeg from '../../MatrixClientPeg'; import sdk from '../../index'; import { sanitizedHtmlNode } from '../../HtmlUtils'; +import { _t } from '../../languageHandler'; module.exports = React.createClass({ @@ -30,6 +31,7 @@ module.exports = React.createClass({ return { phase: "GroupView.LOADING", // LOADING / DISPLAY / ERROR / NOT_FOUND summary: null, + error: null, }; }, @@ -61,6 +63,7 @@ module.exports = React.createClass({ this.setState({ phase: err.httpStatus == 404 ? "GroupView.NOT_FOUND" :"GroupView.ERROR", summary: null, + error: err, }); }); }, @@ -116,9 +119,14 @@ module.exports = React.createClass({ ); } else { + let extraText; + if (this.state.error.errcode === 'M_UNRECOGNIZED') { + extraText =