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 <213943+nickvergessen@users.noreply.github.com>2021-02-20 23:40:51 +0300
committerGitHub <noreply@github.com>2021-02-20 23:40:51 +0300
commitb936927a360d809f1b66844505f52fb7ff355206 (patch)
tree341fa2a5bdfd5771d7256e0ad2e4593f440deb2c /lib
parent9a4f8952fec1572ffa3678b76623a1980f13e915 (diff)
parent4c90c1efc659e7f2ef6f9a23fd8b8597caac27c4 (diff)
Merge pull request #5227 from nextcloud/backport/5213/stable21.1
[stable21.1] Drop guest moderators when changing a conversation to group conversation
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();
}