You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
this is dead code actually, can go
This commit is contained in:
@@ -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)}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user