diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-02-20 23:41:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-20 23:41:05 +0300 |
commit | 2f878beb6ee6426be0e73bdd21250293206c9e3e (patch) | |
tree | 30678cd29550a99560fec6319315a6f5f176a686 | |
parent | b4c2ac167be041a5f8542de417344958851507ac (diff) | |
parent | cdc3f3444508b9fd512001248210a4927adcee3f (diff) |
Merge pull request #5228 from nextcloud/backport/5213/stable20
[stable20] 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 3827c932f..791d78474 100644 --- a/lib/Room.php +++ b/lib/Room.php @@ -575,7 +575,7 @@ class Room { $query = $this->db->getQueryBuilder(); $query->delete('talk_participants') ->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(); } |