Clarify invite error text
This fixes a typo in the message (valide) and also has better handling of error codes, because in some cases, we don't get one. Fixes https://github.com/vector-im/riot-web/issues/10683
This commit is contained in:
parent
5565eca0cb
commit
00a69b996d
2 changed files with 6 additions and 4 deletions
|
@ -337,8 +337,10 @@ module.exports = React.createClass({
|
|||
title = _t("Something went wrong with your invite to %(roomName)s",
|
||||
{roomName: this._roomName()});
|
||||
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(
|
||||
"An error (%(errcode)s) was returned while trying to validate your " +
|
||||
"invite. You could try to pass this information on to a room admin.",
|
||||
{errcode: this.state.threePidFetchError.errcode || _t("unknown error code")},
|
||||
);
|
||||
switch (joinRule) {
|
||||
case "invite":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue