Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Add some logging to pickle key save/restore (#12831)
Browse files Browse the repository at this point in the history
... in an attempt to diagnose element-hq/element-desktop#1077
  • Loading branch information
richvdh authored Jul 26, 2024
1 parent 25ab9e4 commit 95db2d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Lifecycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ export async function restoreFromLocalStorage(opts?: { ignoreGuest?: boolean }):

const pickleKey = (await PlatformPeg.get()?.getPickleKey(userId, deviceId ?? "")) ?? undefined;
if (pickleKey) {
logger.log("Got pickle key");
logger.log("Got pickle key for ${userId}|${deviceId}");
} else {
logger.log("No pickle key available");
}
Expand Down Expand Up @@ -658,7 +658,7 @@ export async function setLoggedIn(credentials: IMatrixClientCreds): Promise<Matr
: null;

if (pickleKey) {
logger.log("Created pickle key");
logger.log(`Created pickle key for ${credentials.userId}|${credentials.deviceId}`);
} else {
logger.log("Pickle key not created");
}
Expand Down

0 comments on commit 95db2d9

Please sign in to comment.