From cd68bb7b3fb12a2508ad315022b6614fb9d4e69a Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 18 Feb 2021 14:00:06 +0100 Subject: [PATCH] log when devices get marked as outdated --- src/matrix/e2ee/DeviceTracker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/matrix/e2ee/DeviceTracker.js b/src/matrix/e2ee/DeviceTracker.js index 3f3c9a88..9606872e 100644 --- a/src/matrix/e2ee/DeviceTracker.js +++ b/src/matrix/e2ee/DeviceTracker.js @@ -43,7 +43,7 @@ export class DeviceTracker { this._ownDeviceId = ownDeviceId; } - async writeDeviceChanges(deviceLists, txn) { + async writeDeviceChanges(deviceLists, txn, log) { const {userIdentities} = txn; // TODO: should we also look at left here to handle this?: // the usual problem here is that you share a room with a user, @@ -56,6 +56,7 @@ export class DeviceTracker { await Promise.all(deviceLists.changed.map(async userId => { const user = await userIdentities.get(userId); if (user) { + log.log({l: "outdated", id: userId}) user.deviceTrackingStatus = TRACKING_STATUS_OUTDATED; userIdentities.set(user); }