Fix localStorage entry of homeserver url

Change-Id: I206e3b4428df1f51d4281ad4db26bd64bdffb85d
This commit is contained in:
Michael Albert 2020-04-21 14:00:57 +02:00
parent 24abcd4e4a
commit d3cd2e9e33
3 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ const validateAlias = fieldval => {
if (fieldval === undefined) { if (fieldval === undefined) {
return undefined; return undefined;
} }
const homeserver = localStorage.getItem("home_server"); const homeserver = localStorage.getItem("home_server_url");
if (approximateAliasLength(fieldval, homeserver) > 255) { if (approximateAliasLength(fieldval, homeserver) > 255) {
return "synapseadmin.rooms.alias_too_long"; return "synapseadmin.rooms.alias_too_long";

View File

@ -97,7 +97,7 @@ export const UserList = props => (
); );
function generateRandomUser() { function generateRandomUser() {
const homeserver = localStorage.getItem("home_server"); const homeserver = localStorage.getItem("home_server_url");
const user_id = const user_id =
"@" + "@" +
Array(8) Array(8)

View File

@ -76,7 +76,7 @@ const roomCreationMap = {
const roomCreationProvider = { const roomCreationProvider = {
create: (resource, params) => { create: (resource, params) => {
const homeserver = localStorage.getItem("home_server"); const homeserver = localStorage.getItem("home_server_url");
const homeserver_url = "https://" + homeserver + roomCreationMap.path; const homeserver_url = "https://" + homeserver + roomCreationMap.path;