From 77fb711052040fb1e2a5114909dc6654ac143a69 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 19 Feb 2021 14:02:56 +0100 Subject: [PATCH] Drop guest moderators when changing a conversation to group conversation Signed-off-by: Joas Schilling --- lib/Room.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Room.php b/lib/Room.php index 985cc793d..c91c80857 100644 --- a/lib/Room.php +++ b/lib/Room.php @@ -792,7 +792,7 @@ class Room { $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(); }