disable LGM badges for DMs temporarily - see https://github.com/vector-im/vector-web/issues/2343

This commit is contained in:
Matthew Hodgson 2016-09-24 00:43:46 +01:00
parent 18cbd452b0
commit 40ba1ff5aa

View file

@ -277,9 +277,11 @@ module.exports = React.createClass({
var RoomAvatar = sdk.getComponent('avatars.RoomAvatar');
var directMessageIndicator;
if (this._isDirectMessageRoom(this.props.room.roomId)) {
directMessageIndicator = <img src="img/icon_person.svg" className="mx_RoomTile_dm" width="11" height="13" alt="dm"/>;
}
// Temporarily turning off the LGM badges as isDirectMessageRoom is horribly unperformant
// - see https://github.com/vector-im/vector-web/issues/2343
// if (this._isDirectMessageRoom(this.props.room.roomId)) {
// directMessageIndicator = <img src="img/icon_person.svg" className="mx_RoomTile_dm" width="11" height="13" alt="dm"/>;
// }
// These props are injected by React DnD,
// as defined by your `collect` function above: