mirror of https://github.com/vector-im/riot-web
Add some logging to pickle key save/restore (#12831)
... in an attempt to diagnose https://github.com/element-hq/element-desktop/issues/1077pull/24763/head
parent
25ab9e4e91
commit
95db2d943c
|
@ -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");
|
||||
}
|
||||
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue