From d6b5c07ee6c8fb8103b790a673b3d66774873365 Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Fri, 12 Apr 2024 18:00:49 +0100 Subject: [PATCH] Always encrypt the db for new users. (#2692) --- .../Authentication/AuthenticationServiceProxy.swift | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ElementX/Sources/Services/Authentication/AuthenticationServiceProxy.swift b/ElementX/Sources/Services/Authentication/AuthenticationServiceProxy.swift index 73ecc1172..d661b998e 100644 --- a/ElementX/Sources/Services/Authentication/AuthenticationServiceProxy.swift +++ b/ElementX/Sources/Services/Authentication/AuthenticationServiceProxy.swift @@ -27,12 +27,7 @@ class AuthenticationServiceProxy: AuthenticationServiceProxyProtocol { var homeserver: CurrentValuePublisher { homeserverSubject.asCurrentValuePublisher() } init(userSessionStore: UserSessionStoreProtocol, encryptionKeyProvider: EncryptionKeyProviderProtocol, appSettings: AppSettings) { - let passphrase = appSettings.isDevelopmentBuild ? encryptionKeyProvider.generateKey().base64EncodedString() : nil - if passphrase != nil { - MXLog.info("Testing database encryption in development build.") - } - - self.passphrase = passphrase + passphrase = encryptionKeyProvider.generateKey().base64EncodedString() self.userSessionStore = userSessionStore homeserverSubject = .init(LoginHomeserver(address: appSettings.defaultHomeserverAddress,