aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Talk/Broker.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Talk/Broker.php')
-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);
+ }
}