From db5a2138eaffeeb8c543ed147579834cac4d7d27 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 21 Feb 2019 17:52:25 +0100 Subject: [PATCH] this is dead code actually, can go --- src/matrix-to.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/matrix-to.js b/src/matrix-to.js index ded691c27d..5f162a9af6 100644 --- a/src/matrix-to.js +++ b/src/matrix-to.js @@ -103,10 +103,6 @@ export class RoomPermaLinkCreator { forEvent(eventId) { const roomId = this._room.roomId; 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)}`; }