Skip to content

Commit

Permalink
Add a few extra logs we its easy to know if a rageshake has an encryp…
Browse files Browse the repository at this point in the history
…ted store or not.
  • Loading branch information
pixlwave committed Jan 12, 2024
1 parent 3122042 commit 9e97be8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ElementX/Sources/Services/UserSession/UserSessionStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ class UserSessionStore: UserSessionStoreProtocol {
}

private func restorePreviousLogin(_ credentials: KeychainCredentials) async -> Result<ClientProxyProtocol, UserSessionStoreError> {
if credentials.restorationToken.passphrase != nil {
MXLog.info("Restoring client with encrypted store.")
}
let builder = ClientBuilder()
.basePath(path: baseDirectory.path)
.username(username: credentials.userID)
Expand Down
3 changes: 3 additions & 0 deletions NSE/Sources/Other/NSEUserSession.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ final class NSEUserSession {

init(credentials: KeychainCredentials, clientSessionDelegate: ClientSessionDelegate) throws {
userID = credentials.userID
if credentials.restorationToken.passphrase != nil {
MXLog.info("Restoring client with encrypted store.")
}
baseClient = try ClientBuilder()
.basePath(path: URL.sessionsBaseDirectory.path)
.username(username: credentials.userID)
Expand Down

0 comments on commit 9e97be8

Please sign in to comment.