diff --git a/src/components/views/rooms/RoomPreviewBar.js b/src/components/views/rooms/RoomPreviewBar.js index 2f22ff1513..883bdb3be8 100644 --- a/src/components/views/rooms/RoomPreviewBar.js +++ b/src/components/views/rooms/RoomPreviewBar.js @@ -222,7 +222,10 @@ module.exports = React.createClass({ case MessageCase.OtherThreePIDError: { title = _t("Something went wrong with your invite to this room"); const joinRule = this._joinRule(); - const errCodeMessage = _t("%(errcode)s was returned while trying to valide your invite. You could try to pass this information on to a room admin.", {errcode: this.state.threePidFetchError.errcode}); + const errCodeMessage = _t("%(errcode)s was returned while trying to valide your invite. You could try to pass this information on to a room admin.", + {errcode: this.state.threePidFetchError.errcode}, + {code: label => {label}} + ); switch (joinRule) { case "invite": subTitle = [ @@ -291,10 +294,11 @@ module.exports = React.createClass({ title = _t("%(roomName)s is not accessible at this time.", {roomName: this._roomName()}); subTitle = ([ _t("Try again later, or ask a room admin to check if you have access."), - _t("%(errcode)s was returned when trying to access the room.", {errcode: this.props.error.errcode}), + _t("%(errcode)s was returned while trying to access the room.", {errcode: this.props.error.errcode}), _t("If you think you're seeing this message in error, please submit a bug report.", {}, { issueLink: label => { label }, + code: label => {label}, }), ]); break;