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