Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions lib/Service/ParticipantService.php
Original file line number Diff line number Diff line change
Expand Up @@ -1010,8 +1010,9 @@ public function cleanGuestParticipants(Room $room): void {
continue;
}

if ($row['permissions'] !== Attendee::PERMISSIONS_DEFAULT
|| $row['participant_type'] === Participant::GUEST_MODERATOR) {
if ((int) $row['participant_type'] !== Participant::GUEST
|| ((int) $row['permissions'] !== Attendee::PERMISSIONS_DEFAULT
&& (int) $row['permissions'] !== Attendee::PERMISSIONS_CUSTOM)) {
// Keep guests with non-default permissions in case they just reconnect
continue;
}
Expand All @@ -1021,6 +1022,10 @@ public function cleanGuestParticipants(Room $room): void {
}
$result->closeCursor();

if (empty($attendeeIds)) {
return;
}

$this->attendeeMapper->deleteByIds($attendeeIds);

$attendeeEvent = new AttendeesRemovedEvent($room, $attendees);
Expand Down