mirror of https://github.com/vector-im/riot-web
this is dead code actually, can go
parent
ed4960f1c5
commit
db5a2138ea
|
@ -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)}`;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue