Add rooms in the default candidate types to look for when sharing
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
7bc9b9a76e
commit
5c07f9c2ec
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue