Merge branch 'master' into amp.chat

Change-Id: I6141964157bcb7218e2e6368a3ca8d20eb4855e9
This commit is contained in:
Manuel Stahl
2020-05-05 13:44:06 +02:00
10 changed files with 304 additions and 98 deletions
+2 -2
View File
@@ -43,7 +43,7 @@ const validateDisplayName = fieldval =>
: undefined;
function approximateAliasLength(alias, homeserver) {
/* TODO maybe handle punycode in homeserver URL */
/* TODO maybe handle punycode in homeserver name */
var te;
@@ -69,7 +69,7 @@ const validateAlias = fieldval => {
if (fieldval === undefined) {
return undefined;
}
const homeserver = localStorage.getItem("home_server_url");
const homeserver = localStorage.getItem("home_server");
if (approximateAliasLength(fieldval, homeserver) > 255) {
return "synapseadmin.rooms.alias_too_long";