Handle M_UNSUPPORTED_ROOM_VERSION in invites and room creation
Fixes https://github.com/vector-im/riot-web/issues/8925
This commit is contained in:
parent
687b43f7b4
commit
d755263e33
3 changed files with 15 additions and 3 deletions
|
@ -178,6 +178,8 @@ export default class MultiInviter {
|
|||
this._doInvite(address, true).then(resolve, reject);
|
||||
} else if (err.errcode === "M_BAD_STATE") {
|
||||
errorText = _t("The user must be unbanned before they can be invited.");
|
||||
} else if (err.errcode === "M_UNSUPPORTED_ROOM_VERSION") {
|
||||
errorText = _t("The user's homeserver does not support the version of the room.");
|
||||
} else {
|
||||
errorText = _t('Unknown server error');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue