this is dead code actually, can go

pull/21833/head
Bruno Windels 2019-02-21 17:52:25 +01:00
parent ed4960f1c5
commit db5a2138ea
1 changed files with 0 additions and 4 deletions

View File

@ -103,10 +103,6 @@ export class RoomPermaLinkCreator {
forEvent(eventId) { forEvent(eventId) {
const roomId = this._room.roomId; const roomId = this._room.roomId;
const permalinkBase = `${baseUrl}/#/${roomId}/${eventId}`; const permalinkBase = `${baseUrl}/#/${roomId}/${eventId}`;
// If the roomId isn't actually a room ID, don't try to list the servers.
// Aliases are already routable, and don't need extra information.
if (roomId[0] !== '!') return permalinkBase;
return `${permalinkBase}${encodeServerCandidates(this._serverCandidates)}`; return `${permalinkBase}${encodeServerCandidates(this._serverCandidates)}`;
} }