Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-02-19 16:02:56 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-02-20 22:45:32 +0300
commit4c90c1efc659e7f2ef6f9a23fd8b8597caac27c4 (patch)
treedfa9edd795824b8de825572f387e08b82b750941 /lib
parentdaa3e5a1d6edb60205d9206e2d6c0bfc57cf6598 (diff)
Drop guest moderators when changing a conversation to group conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Room.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Room.php b/lib/Room.php
index 312d8189e..4721ff41a 100644
--- a/lib/Room.php
+++ b/lib/Room.php
@@ -785,7 +785,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();
}