diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2022-10-31 15:59:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-31 15:59:25 +0100 |
commit | aa81b87f26552bc3d49de6cf0babfe6a79c21af5 (patch) | |
tree | 2ef81f8542c9f1a72c3cb8293bec8b0e93a11974 /lib/private | |
parent | 1a33a4692dd49ef7710794bf58341f9af8b25b7c (diff) | |
parent | 06627c800c45672d57a255f494c5d47efd160aff (diff) | |
download | nextcloud-server-aa81b87f26552bc3d49de6cf0babfe6a79c21af5.tar.gz nextcloud-server-aa81b87f26552bc3d49de6cf0babfe6a79c21af5.zip |
Merge pull request #34894 from nextcloud/enhancement/talk-api-delete-conversation
Add Talk converstation delete API
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Talk/Broker.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/Talk/Broker.php b/lib/private/Talk/Broker.php index a686adeed04..12e6c5fb34b 100644 --- a/lib/private/Talk/Broker.php +++ b/lib/private/Talk/Broker.php @@ -106,4 +106,12 @@ class Broker implements IBroker { $options ?? ConversationOptions::default() ); } + + public function deleteConversation(string $id): void { + if (!$this->hasBackend()) { + throw new NoBackendException("The Talk broker has no registered backend"); + } + + $this->backend->deleteConversation($id); + } } |