File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
developer_manual/digging_deeper Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,12 @@ A new conversation needs a name and at least one moderator. By default this conv
4646 Customize the conversation
4747~~~~~~~~~~~~~~~~~~~~~~~~~~
4848
49- It's possible to adjust the defaults.
49+ It's possible to adjust the defaults:
50+
51+ - ``setPublic ``: Make the conversation public (allowing anyone with the link to access the conversation).
52+ - ``setMeetingDate `` (since Nextcloud 32.0.9, 33.0.3 and 34.0.0): Mark a conversation as related to a meeting.
53+ This will make Talk automatically expire the conversation 4 weeks (value is configurable)
54+ after the meeting, unless the owner confirms the conversation should remain.
5055
5156.. code-block :: php
5257
@@ -56,10 +61,16 @@ It's possible to adjust the defaults.
5661 /** @var \OCP\IUser $alice */
5762 /** @var \OCP\IUser $bob */
5863 $options = $broker->newConversationOptions();
64+ $options->setPublic();
65+ $options->setMeetingDate(
66+ $this->timeFactory->getDateTime(new \DateTime('2026-04-07 13:00')),
67+ $this->timeFactory->getDateTime(new \DateTime('2026-04-07 14:00')),
68+ );
69+
5970 $conversation = $broker->createConversation(
6071 'Weekly 1:1',
6172 [$alice, $bob],
62- $broker->newConversationOptions()->setPublic()
73+ $options
6374 );
6475
6576 Delete a conversation
You can’t perform that action at this time.
0 commit comments