aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Talk
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2022-10-31 11:44:39 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2022-10-31 11:44:39 +0100
commit06627c800c45672d57a255f494c5d47efd160aff (patch)
treeb9e77b3d66f34626f73126a38f6a83e397f69549 /lib/private/Talk
parent7c39e3e6bdae6dd70c804d1d4c5084ecc0b2ce54 (diff)
downloadnextcloud-server-06627c800c45672d57a255f494c5d47efd160aff.tar.gz
nextcloud-server-06627c800c45672d57a255f494c5d47efd160aff.zip
Add Talk converstation delete API
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Talk')
-rw-r--r--lib/private/Talk/Broker.php8
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);
+ }
}