* Remove dataset from context chat * * @NoAdminRequired * @param int $datasetId * @return bool */
(int $datasetId)
| 340 | * @return bool |
| 341 | */ |
| 342 | private function providerRemove(int $datasetId) { |
| 343 | if (self::$contextChatAvailable === null) { |
| 344 | self::$contextChatAvailable = class_exists('OCA\\ContextChat\\Public\\ContentManager'); |
| 345 | } |
| 346 | if (self::$contextChatAvailable) { |
| 347 | $this->contextChatManager = \OC::$server->query('OCA\\Analytics\\ContextChat\\ContextChatManager'); |
| 348 | $this->contextChatManager->removeContentByDataset($datasetId); |
| 349 | } |
| 350 | return true; |
| 351 | } |
| 352 | |
| 353 | /** |
| 354 | * Remove user from context chat |
no test coverage detected