From fada013f9ecfbf47a002df8671458cd0d2871722 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 21 Feb 2020 14:06:57 +0100 Subject: [PATCH] this isn't doing anything because we don't have a room when the alias is not moderated --- src/components/views/elements/Pill.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/views/elements/Pill.js b/src/components/views/elements/Pill.js index 34c1fd4c32..ff455755e0 100644 --- a/src/components/views/elements/Pill.js +++ b/src/components/views/elements/Pill.js @@ -237,15 +237,7 @@ const Pill = createReactClass({ case Pill.TYPE_ROOM_MENTION: { const room = this.state.room; if (room) { - const isModeratedAlias = room.getCanonicalAlias() === resource || - room.getAltAliases().includes(resource); - if (!isModeratedAlias) { - linkText = getDisplayAliasForRoom(room); - } - // if there are no moderated aliases, stick to resource - if (!linkText) { - linkText = resource; - } + linkText = resource; if (this.props.shouldShowPillAvatar) { avatar =