mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-16 08:51:31 +03:00
skip direct chats which either you or the target have left
This commit is contained in:
parent
b644751ca1
commit
433cd505ee
1 changed files with 6 additions and 1 deletions
|
@ -620,7 +620,12 @@ 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);
|
||||||
if (me.membership === 'leave') continue;
|
// not a DM room if we have left it
|
||||||
|
if (!me.membership || me.membership === 'leave') continue;
|
||||||
|
// not a DM room if they have left it
|
||||||
|
const them = this.props.member;
|
||||||
|
if (!them.membership || them.membership === 'leave') continue;
|
||||||
|
|
||||||
const highlight = room.getUnreadNotificationCount('highlight') > 0 || me.membership === 'invite';
|
const highlight = room.getUnreadNotificationCount('highlight') > 0 || me.membership === 'invite';
|
||||||
|
|
||||||
tiles.push(
|
tiles.push(
|
||||||
|
|
Loading…
Reference in a new issue