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
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2020-12-09 12:23:37 +0300
committerVincent Petry <vincent@nextcloud.com>2020-12-11 20:15:52 +0300
commitbcc9f8fdb5da031a36d76772d8000c8dee47bc58 (patch)
tree3f027b785d8c3fbfc430e9f18bc3d8e30fe3e985 /lib/Command
parent0cdd4528a8b5e2beb82c66bceecc9995827c5427 (diff)
Fix updating listable attribute from occ
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'lib/Command')
-rw-r--r--lib/Command/Room/Create.php4
-rw-r--r--lib/Command/Room/Update.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Command/Room/Create.php b/lib/Command/Room/Create.php
index 49ea9c559..8e992aaf3 100644
--- a/lib/Command/Room/Create.php
+++ b/lib/Command/Room/Create.php
@@ -73,7 +73,7 @@ class Create extends Base {
)->addOption(
'listable',
null,
- InputOption::VALUE_NONE,
+ InputOption::VALUE_REQUIRED,
'Creates the room with the given listable scope'
)->addOption(
'password',
@@ -137,7 +137,7 @@ class Create extends Base {
}
$this->setRoomReadOnly($room, $readonly);
- $this->setListable($room, $listable);
+ $this->setRoomListable($room, (int)$listable);
if ($password !== null) {
$this->setRoomPassword($room, $password);
diff --git a/lib/Command/Room/Update.php b/lib/Command/Room/Update.php
index 19929ff41..a32797455 100644
--- a/lib/Command/Room/Update.php
+++ b/lib/Command/Room/Update.php
@@ -69,7 +69,7 @@ class Update extends Base {
)->addOption(
'listable',
null,
- InputOption::VALUE_NONE,
+ InputOption::VALUE_REQUIRED,
'Modifies the room\'s listable scope'
)->addOption(
'password',