diff options
author | Joas Schilling <coding@schilljs.com> | 2019-03-14 22:28:19 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-04-01 17:00:13 +0300 |
commit | 1b9f73987379ecfc2b80cb6855773cfbf1c53b20 (patch) | |
tree | f0a82fa176cd83532c0b76ca1c8c98e77c5bb0c8 /lib/Controller | |
parent | 79246e1d59c8695a3951b989ff3eacad0493ac78 (diff) |
Do not cleanup Changelog rooms
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/RoomController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php index 8813124c0..8bedb1bd5 100644 --- a/lib/Controller/RoomController.php +++ b/lib/Controller/RoomController.php @@ -750,7 +750,8 @@ class RoomController extends AEnvironmentAwareController { && $room->getNumberOfModerators() === 1) { return new DataResponse([], Http::STATUS_BAD_REQUEST); } - } else if ($room->getNumberOfParticipants() === 1) { + } else if ($room->getType() !== Room::CHANGELOG_CONVERSATION && + $room->getNumberOfParticipants() === 1) { $room->deleteRoom(); return new DataResponse(); } |