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() {
|
currentUserHomeServer() {
|
||||||
if (this.$config.defaultServer) {
|
return this.$config.homeServer ? this.$config.homeServer : User.serverName(this.currentUserId);
|
||||||
var homeServer = this.$config.defaultServer;
|
|
||||||
if (homeServer.startsWith("https://")) {
|
|
||||||
homeServer = homeServer.substring(8);
|
|
||||||
}
|
|
||||||
return homeServer;
|
|
||||||
}
|
|
||||||
return User.serverName(this.currentUserId);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
currentRoomId() {
|
currentRoomId() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue