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); }