* @brief Sets status if we tried to initialize the encyption app
* @param bool $privateKey true=initialized false=not initialized
* @return bool
+ *
+ * @note this doesn not indicate of the init was successful, we just remeber the try!
*/
public function setInitialized($init) {
* @brief Gets status if we already tried to initialize the encryption app
* @returns bool
*
+ * @note this doesn not indicate of the init was successful, we just remeber the try!
*/
public function getInitialized() {
if (!is_null(\OC::$session->get('encryptionInitialized'))) {
$session = new \OCA\Encryption\Session($view);\r
\r
$privateKeySet = $session->getPrivateKey() !== false;\r
-// was the key successfully initialized during log-in\r
+// did we tried to initialize the keys for this session?\r
$initialized = $session->getInitialized();\r
\r
$recoveryAdminEnabled = OC_Appconfig::getValue('files_encryption', 'recoveryAdminEnabled');\r