update comment to make explain behaviour better
This commit is contained in:
parent
3eb87e2aa3
commit
3b8c408482
1 changed files with 1 additions and 1 deletions
|
@ -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 isJoin = membership === 'join' && prevMembership !== 'ban';
|
||||||
const isLeave = membership === 'leave' && ev.getStateKey() === ev.getSender();
|
const isLeave = membership === 'leave' && ev.getStateKey() === ev.getSender();
|
||||||
return isJoin || isLeave;
|
return isJoin || isLeave;
|
||||||
|
|
Loading…
Reference in a new issue