From 02d5b5b2b7b77b7bd0b82359d258bca3c7a59e00 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 14 Feb 2025 14:48:57 +0100 Subject: [PATCH] fix(conversation): Only trigger event with users that really got removed Signed-off-by: Joas Schilling --- lib/Service/ParticipantService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Service/ParticipantService.php b/lib/Service/ParticipantService.php index 144f5bec1cd..d828329fb69 100644 --- a/lib/Service/ParticipantService.php +++ b/lib/Service/ParticipantService.php @@ -1007,10 +1007,10 @@ public function removeGroupMembers(Room $room, Participant $removedGroupParticip $participant = $this->getParticipant($room, $user->getUID()); $participantType = $participant->getAttendee()->getParticipantType(); - $attendees[] = $participant->getAttendee(); if ($participantType === Participant::USER) { // Only remove normal users, not moderators/admins $this->removeAttendee($room, $participant, $reason, true); + $attendees[] = $participant->getAttendee(); } } catch (ParticipantNotFoundException $e) { } @@ -1070,10 +1070,10 @@ public function removeCircleMembers(Room $room, Participant $removedCirclePartic $participant = $this->getParticipant($room, $user->getUID()); $participantType = $participant->getAttendee()->getParticipantType(); - $attendees[] = $participant->getAttendee(); if ($participantType === Participant::USER) { // Only remove normal users, not moderators/admins $this->removeAttendee($room, $participant, $reason, true); + $attendees[] = $participant->getAttendee(); } } catch (ParticipantNotFoundException $e) { }