forked from mystiq/hydrogen-web
log when devices get marked as outdated
This commit is contained in:
parent
8539b0c893
commit
cd68bb7b3f
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue