Skip to content

Commit b36323b

Browse files
Merge pull request #14265 from nextcloud/backport/14261/stable33
[stable33] docs(developers): Add new IConversationOptions
2 parents 7fae316 + 6a4519c commit b36323b

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

developer_manual/digging_deeper/talk.rst

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)