* Remove user from context chat * * @NoAdminRequired * @param string $userId * @return bool */
(string $userId)
| 358 | * @return bool |
| 359 | */ |
| 360 | private function providerRemoveByUser(string $userId) { |
| 361 | if (self::$contextChatAvailable === null) { |
| 362 | self::$contextChatAvailable = class_exists('OCA\\ContextChat\\Public\\ContentManager'); |
| 363 | } |
| 364 | if (self::$contextChatAvailable) { |
| 365 | $this->contextChatManager = \OC::$server->query('OCA\\Analytics\\ContextChat\\ContextChatManager'); |
| 366 | $this->contextChatManager->removeContentByUser($userId); |
| 367 | } |
| 368 | return true; |
| 369 | } |
| 370 | |
| 371 | /** |
| 372 | * Delete Dataset and all depending objects |
no test coverage detected