summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-07-16 03:48:50 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-08-24 18:06:46 +0200
commit5c07f9c2ec41c41a526ab34d4316b6826c1e0cc6 (patch)
treeebde482bf7d95f89e1bff5cf8bb7c8662427efe5 /apps
parent7bc9b9a76e006a98f8abf8bc95f18e1c95ddd321 (diff)
downloadnextcloud-server-5c07f9c2ec41c41a526ab34d4316b6826c1e0cc6.tar.gz
nextcloud-server-5c07f9c2ec41c41a526ab34d4316b6826c1e0cc6.zip
Add rooms in the default candidate types to look for when sharing
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps')
-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;