diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-02-22 11:22:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-22 11:22:56 +0300 |
commit | 9bc4568517cbb066390aa48ebd8a2a8db47fec37 (patch) | |
tree | 1cc30a0dfd454f07d9ed2db4a15be6e8f2110f0e | |
parent | 9e3f29487a9ce6f2a6a32acb02f4b575caca5d88 (diff) | |
parent | 172828845ba08f315eed11d85a31e23347ca84b5 (diff) |
Merge pull request #5231 from nextcloud/backport/5213/stable20.1
[stable20.1] Drop guest moderators when changing a conversation to group conversation
-rw-r--r-- | lib/Room.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Room.php b/lib/Room.php index 8e30fd85d..ebaf2ecf3 100644 --- a/lib/Room.php +++ b/lib/Room.php @@ -684,7 +684,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(); } |