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) { }