this isn't doing anything because we don't have a room when the alias is not moderated
This commit is contained in:
parent
2b19648786
commit
fada013f9e
1 changed files with 1 additions and 9 deletions
|
@ -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 = <RoomAvatar room={room} width={16} height={16} aria-hidden="true" />;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue