support defaultServer with http-only connectivity

This commit is contained in:
John Hess 2022-02-25 14:43:36 -06:00
parent 227622235a
commit 888adbf100
2 changed files with 2 additions and 16 deletions

View file

@ -102,9 +102,7 @@ export default {
return new LocalStorageCryptoStore(this.$store.getters.storage);
},
login(user) {
const tempMatrixClient = sdk.createClient(
User.homeServerUrl(user.home_server)
);
const tempMatrixClient = sdk.createClient(user.home_server);
var promiseLogin;
const self = this;
@ -236,13 +234,8 @@ export default {
this.$store.getters.storage
);
var homeServer = user.home_server;
if (!homeServer.startsWith("https://")) {
homeServer = "https://" + homeServer;
}
var opts = {
baseUrl: homeServer,
baseUrl: user.home_server,
userId: user.user_id,
store: matrixStore,
sessionStore: webStorageSessionStore,