mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-16 22:41:48 +03:00
skip direct chats which you have left in memberinfo
This commit is contained in:
parent
6077693829
commit
b644751ca1
1 changed files with 4 additions and 5 deletions
|
@ -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}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue