Fix localStorage entry of homeserver url
Change-Id: I206e3b4428df1f51d4281ad4db26bd64bdffb85d
This commit is contained in:
parent
24abcd4e4a
commit
d3cd2e9e33
@ -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";
|
||||||
|
@ -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)
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user