diff --git a/src/components/rooms.js b/src/components/rooms.js index 1e84958..dc2fc30 100644 --- a/src/components/rooms.js +++ b/src/components/rooms.js @@ -68,7 +68,7 @@ const validateAlias = fieldval => { if (fieldval === undefined) { return undefined; } - const homeserver = localStorage.getItem("home_server"); + const homeserver = localStorage.getItem("home_server_url"); if (approximateAliasLength(fieldval, homeserver) > 255) { return "synapseadmin.rooms.alias_too_long"; diff --git a/src/components/users.js b/src/components/users.js index 1fadb1c..8ee8ea7 100644 --- a/src/components/users.js +++ b/src/components/users.js @@ -97,7 +97,7 @@ export const UserList = props => ( ); function generateRandomUser() { - const homeserver = localStorage.getItem("home_server"); + const homeserver = localStorage.getItem("home_server_url"); const user_id = "@" + Array(8) diff --git a/src/synapse/dataProvider.js b/src/synapse/dataProvider.js index 0f24749..cae6e6c 100644 --- a/src/synapse/dataProvider.js +++ b/src/synapse/dataProvider.js @@ -76,7 +76,7 @@ const roomCreationMap = { const roomCreationProvider = { create: (resource, params) => { - const homeserver = localStorage.getItem("home_server"); + const homeserver = localStorage.getItem("home_server_url"); const homeserver_url = "https://" + homeserver + roomCreationMap.path;