diff --git a/src/shouldHideEvent.js b/src/shouldHideEvent.js index 6e0926e684..afc8fdc596 100644 --- a/src/shouldHideEvent.js +++ b/src/shouldHideEvent.js @@ -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;