diff options
author | Vincent Petry <vincent@nextcloud.com> | 2020-12-01 13:56:54 +0300 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2020-12-11 20:15:47 +0300 |
commit | 17971cd34a6ecb0cdf4e926e41414f13a2bd4c41 (patch) | |
tree | abb522f422fd26ff1654eabdaacfe54ed5d09a94 /lib/Manager.php | |
parent | be0ed4a7f5f3b7eaa8acef96258862929dfd729f (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.php | 2 |
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, |