skip direct chats which you have left in memberinfo

This commit is contained in:
Michael Telatynski 2017-08-28 00:16:22 +01:00
parent 6077693829
commit b644751ca1
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E

View file

@ -620,17 +620,16 @@ module.exports = withMatrixClient(React.createClass({
const room = this.props.matrixClient.getRoom(roomId); const room = this.props.matrixClient.getRoom(roomId);
if (room) { if (room) {
const me = room.getMember(this.props.matrixClient.credentials.userId); const me = room.getMember(this.props.matrixClient.credentials.userId);
const highlight = ( if (me.membership === 'leave') continue;
room.getUnreadNotificationCount('highlight') > 0 || const highlight = room.getUnreadNotificationCount('highlight') > 0 || me.membership === 'invite';
me.membership == "invite"
);
tiles.push( tiles.push(
<RoomTile key={room.roomId} room={room} <RoomTile key={room.roomId} room={room}
collapsed={false} collapsed={false}
selected={false} selected={false}
unread={Unread.doesRoomHaveUnreadMessages(room)} unread={Unread.doesRoomHaveUnreadMessages(room)}
highlight={highlight} highlight={highlight}
isInvite={me.membership == "invite"} isInvite={me.membership === "invite"}
onClick={this.onRoomTileClick} onClick={this.onRoomTileClick}
/> />
); );