1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-11 20:22:36 +03:00

Display room name

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-02-06 15:09:21 +01:00
parent 7489011ab7
commit cc38bcf333

View File

@@ -226,7 +226,7 @@ class Pill extends React.Component {
case Pill.TYPE_ROOM_MENTION: { case Pill.TYPE_ROOM_MENTION: {
const room = this.state.room; const room = this.state.room;
if (room) { if (room) {
linkText = resource; linkText = room.name;
if (this.props.shouldShowPillAvatar) { if (this.props.shouldShowPillAvatar) {
avatar = <RoomAvatar room={room} width={16} height={16} aria-hidden="true" />; avatar = <RoomAvatar room={room} width={16} height={16} aria-hidden="true" />;
} }