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

@ -14,13 +14,6 @@ export default class User {
}
};
static homeServerUrl = function (home_server) {
if (home_server && !home_server.startsWith("https://")) {
return "https://" + home_server;
}
return home_server;
};
static localPart(user_id) {
if (user_id && user_id.startsWith('@') && user_id.includes(':')) {
const parts = user_id.split(":");