Fix last two occurences of "homeServer" in the code.
This commit is contained in:
parent
1ddedac0ef
commit
fd2d090141
1 changed files with 2 additions and 2 deletions
|
|
@ -130,7 +130,7 @@ router.beforeEach((to, from, next) => {
|
|||
if (roomId && !roomId.startsWith("@")) {
|
||||
// Not a full username. Assume local name on this server.
|
||||
return router.app.$config.promise.then((config) => {
|
||||
const domain = config.homeServer;
|
||||
const domain = config.defaultMatrixDomainPart;
|
||||
if (!domain) throw new Error("No domain part for user invite!");
|
||||
roomId = "@" + roomId + ":" + domain;
|
||||
router.app.$matrix.setCurrentRoomId(roomId);
|
||||
|
|
@ -186,7 +186,7 @@ router.getRoomLink = function (alias, roomId, roomName, mode) {
|
|||
|
||||
router.getDMLink = function (user, config) {
|
||||
let userId = user.user_id;
|
||||
if (User.domainPart(userId) === config.homeServer && !config.useFullyQualifiedDMLinks) {
|
||||
if (User.domainPart(userId) === config.defaultMatrixDomainPart && !config.useFullyQualifiedDMLinks) {
|
||||
// Using default server, don't include it in the link
|
||||
userId = User.localPart(user.user_id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue