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 =
{_t('This Home server does not support groups')}
; + } return (
Failed to load {this.props.groupId} + {extraText}
); } diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index a4dcb2873f..c6bd304428 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -920,5 +920,7 @@ "Ignore request": "Ignore request", "You added a new device '%(displayName)s', which is requesting encryption keys.": "You added a new device '%(displayName)s', which is requesting encryption keys.", "Your unverified device '%(displayName)s' is requesting encryption keys.": "Your unverified device '%(displayName)s' is requesting encryption keys.", - "Encryption key request": "Encryption key request" + "Encryption key request": "Encryption key request", + "This Home server does not support groups": "This Home server does not support groups", + "Loading device info...": "Loading device info..." }