You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2026-01-03 21:42:32 +03:00
Add better error for email invites without identity server (#10739)
This commit is contained in:
committed by
GitHub
parent
43ffd89e58
commit
02de2f5ba9
@@ -754,6 +754,7 @@
|
||||
"The user must be unbanned before they can be invited.": "The user must be unbanned before they can be invited.",
|
||||
"The user's homeserver does not support the version of the space.": "The user's homeserver does not support the version of the space.",
|
||||
"The user's homeserver does not support the version of the room.": "The user's homeserver does not support the version of the room.",
|
||||
"Cannot invite user by email without an identity server. You can connect to one under \"Settings\".": "Cannot invite user by email without an identity server. You can connect to one under \"Settings\".",
|
||||
"Unknown server error": "Unknown server error",
|
||||
"Use a few words, avoid common phrases": "Use a few words, avoid common phrases",
|
||||
"No need for symbols, digits, or uppercase letters": "No need for symbols, digits, or uppercase letters",
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user