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-01 13:56:54 +0300
committerVincent Petry <vincent@nextcloud.com>2020-12-11 20:15:47 +0300
commit17971cd34a6ecb0cdf4e926e41414f13a2bd4c41 (patch)
treeabb522f422fd26ff1654eabdaacfe54ed5d09a94 /lib/Manager.php
parentbe0ed4a7f5f3b7eaa8acef96258862929dfd729f (diff)
Add listable flags attribute for conversations
Added ability to set a conversation as listable for regular users and/or guest users from the guest app. This only implements the flag, endpoint and UI to manage it but not yet making it appear in search results. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'lib/Manager.php')
-rw-r--r--lib/Manager.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Manager.php b/lib/Manager.php
index f5ea5ccd6..62389cda3 100644
--- a/lib/Manager.php
+++ b/lib/Manager.php
@@ -167,6 +167,7 @@ class Manager {
(int) $row['r_id'],
(int) $row['type'],
(int) $row['read_only'],
+ (int) $row['listable'],
(int) $row['lobby_state'],
(int) $row['sip_enabled'],
$assignedSignalingServer,
@@ -704,6 +705,7 @@ class Manager {
if ($row === false) {
$room = $this->createRoom(Room::CHANGELOG_CONVERSATION, $userId);
$room->setReadOnly(Room::READ_ONLY);
+ $room->setListable(Room::LISTABLE_PARTICIPANTS);
$this->participantService->addUsers($room,[[
'actorType' => Attendee::ACTOR_USERS,