* Remove user from context chat * * @NoAdminRequired * @param string $userId * @return bool */
(string $userId)
| 313 | * @return bool |
| 314 | */ |
| 315 | private function providerRemoveByUser(string $userId) { |
| 316 | if (self::$contextChatAvailable === null) { |
| 317 | self::$contextChatAvailable = class_exists('OCA\\ContextChat\\Public\\ContentManager'); |
| 318 | } |
| 319 | if (self::$contextChatAvailable) { |
| 320 | $this->contextChatManager = \OC::$server->query('OCA\\Analytics\\ContextChat\\ContextChatManager'); |
| 321 | $this->contextChatManager->removeContentByUser($userId); |
| 322 | } |
| 323 | return true; |
| 324 | } |
| 325 | |
| 326 | /** |
| 327 | * Delete Dataset and all depending objects |
no test coverage detected