Skip to content

Commit

Permalink
Don't kick members with membership "leave"
Browse files Browse the repository at this point in the history
  • Loading branch information
maltee1 authored Feb 14, 2024
1 parent 0fccbd7 commit 20d6010
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -2242,7 +2242,10 @@ func (portal *Portal) SyncParticipants(ctx context.Context, source *User, info *
delete(currentMembers, mxid)
}
}
for mxid, _ := range currentMembers {
for mxid, membership := range currentMembers {
if membership == event.MembershipLeave {
continue
}
user := portal.bridge.GetUserByMXIDIfExists(mxid)
if user != nil {
if user.IsLoggedIn() {
Expand Down

0 comments on commit 20d6010

Please sign in to comment.