Skip to content

Commit e34c223

Browse files
Merge pull request #14394 from nextcloud/bugfix/14390/only-trigger-event-with-really-removed-users
fix(conversation): Only trigger event with users that really got removed
2 parents 5993018 + e9bc40b commit e34c223

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

1010-
$attendees[] = $participant->getAttendee();
10111010
if ($participantType === Participant::USER) {
10121011
// Only remove normal users, not moderators/admins
10131012
$this->removeAttendee($room, $participant, $reason, true);
1013+
$attendees[] = $participant->getAttendee();
10141014
}
10151015
} catch (ParticipantNotFoundException $e) {
10161016
}
@@ -1070,10 +1070,10 @@ public function removeCircleMembers(Room $room, Participant $removedCirclePartic
10701070
$participant = $this->getParticipant($room, $user->getUID());
10711071
$participantType = $participant->getAttendee()->getParticipantType();
10721072

1073-
$attendees[] = $participant->getAttendee();
10741073
if ($participantType === Participant::USER) {
10751074
// Only remove normal users, not moderators/admins
10761075
$this->removeAttendee($room, $participant, $reason, true);
1076+
$attendees[] = $participant->getAttendee();
10771077
}
10781078
} catch (ParticipantNotFoundException $e) {
10791079
}

0 commit comments

Comments
 (0)