support defaultServer with http-only connectivity
This commit is contained in:
parent
227622235a
commit
888adbf100
2 changed files with 2 additions and 16 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue