Skip to content

Commit 67323ee

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 fec8760 commit 67323ee

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
@@ -978,10 +978,10 @@ public function removeGroupMembers(Room $room, Participant $removedGroupParticip
978978
$participant = $this->getParticipant($room, $user->getUID());
979979
$participantType = $participant->getAttendee()->getParticipantType();
980980

981-
$attendees[] = $participant->getAttendee();
982981
if ($participantType === Participant::USER) {
983982
// Only remove normal users, not moderators/admins
984983
$this->removeAttendee($room, $participant, $reason, true);
984+
$attendees[] = $participant->getAttendee();
985985
}
986986
} catch (ParticipantNotFoundException $e) {
987987
}
@@ -1041,10 +1041,10 @@ public function removeCircleMembers(Room $room, Participant $removedCirclePartic
10411041
$participant = $this->getParticipant($room, $user->getUID());
10421042
$participantType = $participant->getAttendee()->getParticipantType();
10431043

1044-
$attendees[] = $participant->getAttendee();
10451044
if ($participantType === Participant::USER) {
10461045
// Only remove normal users, not moderators/admins
10471046
$this->removeAttendee($room, $participant, $reason, true);
1047+
$attendees[] = $participant->getAttendee();
10481048
}
10491049
} catch (ParticipantNotFoundException $e) {
10501050
}

0 commit comments

Comments
 (0)