Skip to content

Commit 1f1c806

Browse files
nickvergessenbackportbot[bot]
authored andcommitted
fix(conversation): Only trigger event with users that really got removed
Signed-off-by: Joas Schilling <[email protected]>
1 parent ab11354 commit 1f1c806

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Service/ParticipantService.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -927,10 +927,10 @@ public function removeGroupMembers(Room $room, Participant $removedGroupParticip
927927
$participant = $this->getParticipant($room, $user->getUID());
928928
$participantType = $participant->getAttendee()->getParticipantType();
929929

930-
$attendees[] = $participant->getAttendee();
931930
if ($participantType === Participant::USER) {
932931
// Only remove normal users, not moderators/admins
933932
$this->removeAttendee($room, $participant, $reason, true);
933+
$attendees[] = $participant->getAttendee();
934934
}
935935
} catch (ParticipantNotFoundException $e) {
936936
}
@@ -990,10 +990,10 @@ public function removeCircleMembers(Room $room, Participant $removedCirclePartic
990990
$participant = $this->getParticipant($room, $user->getUID());
991991
$participantType = $participant->getAttendee()->getParticipantType();
992992

993-
$attendees[] = $participant->getAttendee();
994993
if ($participantType === Participant::USER) {
995994
// Only remove normal users, not moderators/admins
996995
$this->removeAttendee($room, $participant, $reason, true);
996+
$attendees[] = $participant->getAttendee();
997997
}
998998
} catch (ParticipantNotFoundException $e) {
999999
}

0 commit comments

Comments
 (0)