diff --git a/apps/encryption/lib/crypto/encryption.php b/apps/encryption/lib/crypto/encryption.php
index 1409a95b95447bc7ec1047a994912edd682edc00..04b7b83b0c2ae5861efe04a275bef2a139a3e667 100644
--- a/apps/encryption/lib/crypto/encryption.php
+++ b/apps/encryption/lib/crypto/encryption.php
@@ -276,12 +276,11 @@ class Encryption implements IEncryptionModule {
 		}
 
 		if ($this->keyManager->recoveryKeyExists() &&
-			$this->util->recoveryEnabled($this->user)) {
+			$this->util->isRecoveryEnabledForUser()) {
 
 			$publicKeys[$this->keyManager->getRecoveryKeyId()] = $this->keyManager->getRecoveryKey();
 		}
 
-
 		return $publicKeys;
 	}