Add better error for email invites without identity server (#10739)
This commit is contained in:
parent
43ffd89e58
commit
02de2f5ba9
3 changed files with 21 additions and 1 deletions
|
@ -277,6 +277,13 @@ export default class MultiInviter {
|
|||
errorText = _t("The user's homeserver does not support the version of the room.");
|
||||
}
|
||||
break;
|
||||
case "ORG.MATRIX.JSSDK_MISSING_PARAM":
|
||||
if (getAddressType(address) === AddressType.Email) {
|
||||
errorText = _t(
|
||||
"Cannot invite user by email without an identity server. " +
|
||||
'You can connect to one under "Settings".',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (!errorText) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue