pr feedback
This commit is contained in:
parent
13a3cf3afe
commit
9866efabe5
1 changed files with 7 additions and 6 deletions
|
@ -471,7 +471,10 @@ module.exports = React.createClass({
|
||||||
topic = `${topic.substring(0, MAX_TOPIC_LENGTH)}...`;
|
topic = `${topic.substring(0, MAX_TOPIC_LENGTH)}...`;
|
||||||
}
|
}
|
||||||
topic = linkifyAndSanitizeHtml(topic);
|
topic = linkifyAndSanitizeHtml(topic);
|
||||||
|
const avatarUrl = ContentRepo.getHttpUriForMxc(
|
||||||
|
MatrixClientPeg.get().getHomeserverUrl(),
|
||||||
|
room.avatar_url, 24, 24, "crop",
|
||||||
|
);
|
||||||
return (
|
return (
|
||||||
<tr key={ room.room_id }
|
<tr key={ room.room_id }
|
||||||
onClick={() => this.onRoomClicked(room)}
|
onClick={() => this.onRoomClicked(room)}
|
||||||
|
@ -481,9 +484,7 @@ module.exports = React.createClass({
|
||||||
<td className="mx_RoomDirectory_roomAvatar">
|
<td className="mx_RoomDirectory_roomAvatar">
|
||||||
<BaseAvatar width={24} height={24} resizeMethod='crop'
|
<BaseAvatar width={24} height={24} resizeMethod='crop'
|
||||||
name={ name } idName={ name }
|
name={ name } idName={ name }
|
||||||
url={ ContentRepo.getHttpUriForMxc(
|
url={ avatarUrl } />
|
||||||
MatrixClientPeg.get().getHomeserverUrl(),
|
|
||||||
room.avatar_url, 24, 24, "crop") } />
|
|
||||||
</td>
|
</td>
|
||||||
<td className="mx_RoomDirectory_roomDescription">
|
<td className="mx_RoomDirectory_roomDescription">
|
||||||
<div className="mx_RoomDirectory_name">{ name }</div>
|
<div className="mx_RoomDirectory_name">{ name }</div>
|
||||||
|
|
Loading…
Reference in a new issue