aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/Controller/ShareesAPIController.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareesAPIController.php b/apps/files_sharing/lib/Controller/ShareesAPIController.php
index ee95661d4c6..c39547bdea5 100644
--- a/apps/files_sharing/lib/Controller/ShareesAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareesAPIController.php
@@ -70,6 +70,7 @@ class ShareesAPIController extends OCSController {
'remote_groups' => [],
'emails' => [],
'circles' => [],
+ 'rooms' => [],
],
'users' => [],
'groups' => [],
@@ -78,6 +79,7 @@ class ShareesAPIController extends OCSController {
'emails' => [],
'lookup' => [],
'circles' => [],
+ 'rooms' => [],
];
protected $reachedEndFor = [];
@@ -162,6 +164,10 @@ class ShareesAPIController extends OCSController {
if ($this->shareManager->shareProviderExists(Share::SHARE_TYPE_EMAIL)) {
$shareTypes[] = Share::SHARE_TYPE_EMAIL;
}
+
+ if ($this->shareManager->shareProviderExists(Share::SHARE_TYPE_ROOM)) {
+ $shareTypes[] = Share::SHARE_TYPE_ROOM;
+ }
} else {
$shareTypes[] = Share::SHARE_TYPE_GROUP;
$shareTypes[] = Share::SHARE_TYPE_EMAIL;