mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-22 10:22:30 +00:00
Fix getRoomUrl
This commit is contained in:
1 parent
10f1446415
commit
93be86c42e
1 file changed
+2
-2
@@ -575,11 +575,11 @@ export function getRoomUrl(roomId) {
|
||||
const [localPart, host] = roomId.replace("#", "").split(":");
|
||||
|
||||
if (host !== window.location.host) {
|
||||
return `${window.location.host}/rooms/${roomId}`;
|
||||
return `${window.location.host}/room/${roomId}`;
|
||||
} else {
|
||||
return `${window.location.host}/${localPart}`;
|
||||
}
|
||||
} else {
|
||||
return `${window.location.host}/rooms/${roomId}`;
|
||||
return `${window.location.host}/room/${roomId}`;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user