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:
Travis Ralston 2019-04-09 19:03:38 -06:00
parent 687b43f7b4
commit d755263e33
3 changed files with 15 additions and 3 deletions

View file

@ -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');
}