From 20d60106b504a33d32f99029d1f5c560e70945f3 Mon Sep 17 00:00:00 2001 From: Malte E <97891689+maltee1@users.noreply.github.com> Date: Wed, 14 Feb 2024 09:13:46 +0100 Subject: [PATCH] Don't kick members with membership "leave" --- portal.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/portal.go b/portal.go index 01ccee6f..8531ec1a 100644 --- a/portal.go +++ b/portal.go @@ -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() {