You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-13 08:02:38 +03:00
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:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user