* Remove dataset from context chat * * @NoAdminRequired * @param int $datasetId * @return bool */
(int $datasetId)
| 295 | * @return bool |
| 296 | */ |
| 297 | private function providerRemove(int $datasetId) { |
| 298 | if (self::$contextChatAvailable === null) { |
| 299 | self::$contextChatAvailable = class_exists('OCA\\ContextChat\\Public\\ContentManager'); |
| 300 | } |
| 301 | if (self::$contextChatAvailable) { |
| 302 | $this->contextChatManager = \OC::$server->query('OCA\\Analytics\\ContextChat\\ContextChatManager'); |
| 303 | $this->contextChatManager->removeContentByDataset($datasetId); |
| 304 | } |
| 305 | return true; |
| 306 | } |
| 307 | |
| 308 | /** |
| 309 | * Remove user from context chat |
no test coverage detected