Skip to content

Commit 3de9e57

Browse files
Merge pull request #14395 from nextcloud/backport/14394/stable29
[stable29] fix(conversation): Only trigger event with users that really got removed
2 parents 79a7b62 + 1f1c806 commit 3de9e57

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)