fix this hiding unbans as found by Luke's review
This commit is contained in:
parent
f42ae1662b
commit
762e6780d7
1 changed files with 4 additions and 1 deletions
|
@ -36,8 +36,11 @@ function _isLeaveOrJoin(ev) {
|
|||
// dupe join event, fall through to hide rules
|
||||
}
|
||||
|
||||
|
||||
// this only applies to joins/leaves not invites/kicks/bans
|
||||
return membership === 'join' || (membership === 'leave' && ev.getStateKey() === ev.getSender());
|
||||
const isJoin = membership === 'join' && prevMembership !== 'ban';
|
||||
const isLeave = membership === 'leave' && ev.getStateKey() === ev.getSender();
|
||||
return isJoin || isLeave;
|
||||
}
|
||||
|
||||
export default function(ev, syncedSettings) {
|
||||
|
|
Loading…
Reference in a new issue