Allow explicit override of home server name in config

This commit is contained in:
Iain Learmonth 2022-01-22 12:54:45 +00:00
parent bd0f7d3833
commit 81984e0b91

View file

@ -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() {