mirror of https://github.com/vector-im/riot-web
update comment to make explain behaviour better
parent
3eb87e2aa3
commit
3b8c408482
|
@ -37,7 +37,7 @@ function _isLeaveOrJoin(ev) {
|
|||
}
|
||||
|
||||
|
||||
// this only applies to joins/leaves not invites/kicks/bans
|
||||
// this only applies to joins/invited joins/leaves not invites/kicks/bans
|
||||
const isJoin = membership === 'join' && prevMembership !== 'ban';
|
||||
const isLeave = membership === 'leave' && ev.getStateKey() === ev.getSender();
|
||||
return isJoin || isLeave;
|
||||
|
|
Loading…
Reference in New Issue