diff --git a/lib/Room.php b/lib/Room.php index 312d8189e44..4721ff41aee 100644 --- a/lib/Room.php +++ b/lib/Room.php @@ -785,7 +785,7 @@ public function setType(int $newType): bool { $query = $this->db->getQueryBuilder(); $query->delete('talk_attendees') ->where($query->expr()->eq('room_id', $query->createNamedParameter($this->getId(), IQueryBuilder::PARAM_INT))) - ->andWhere($query->expr()->in('participant_type', $query->createNamedParameter([Participant::GUEST, Participant::USER_SELF_JOINED], IQueryBuilder::PARAM_INT_ARRAY))); + ->andWhere($query->expr()->in('participant_type', $query->createNamedParameter([Participant::GUEST, Participant::GUEST_MODERATOR, Participant::USER_SELF_JOINED], IQueryBuilder::PARAM_INT_ARRAY))); $query->execute(); }