Allow explicit override of home server name in config
This commit is contained in:
parent
bd0f7d3833
commit
81984e0b91
1 changed files with 1 additions and 8 deletions
|
|
@ -67,14 +67,7 @@ export default {
|
|||
},
|
||||
|
||||
currentUserHomeServer() {
|
||||
if (this.$config.defaultServer) {
|
||||
var homeServer = this.$config.defaultServer;
|
||||
if (homeServer.startsWith("https://")) {
|
||||
homeServer = homeServer.substring(8);
|
||||
}
|
||||
return homeServer;
|
||||
}
|
||||
return User.serverName(this.currentUserId);
|
||||
return this.$config.homeServer ? this.$config.homeServer : User.serverName(this.currentUserId);
|
||||
},
|
||||
|
||||
currentRoomId() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue