Skip to content

Commit

Permalink
Merge pull request #623 from matrix-org/dbkr/devicelist_is_too_dirty
Browse files Browse the repository at this point in the history
Don't mark devicelist dirty unnecessarily
  • Loading branch information
dbkr authored Mar 7, 2018
2 parents 5f12d85 + 66e2b3b commit 0eb7212
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/crypto/DeviceList.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,11 @@ export default class DeviceList {
if (this._deviceTrackingStatus[userId]) {
console.log('No longer tracking device list for ' + userId);
this._deviceTrackingStatus[userId] = TRACKING_STATUS_NOT_TRACKED;
}
// we don't yet persist the tracking status, since there may be a lot
// of calls; we save all data together once the sync is done

this._dirty = true;
// we don't yet persist the tracking status, since there may be a lot
// of calls; we save all data together once the sync is done
this._dirty = true;
}
}

/**
Expand Down Expand Up @@ -453,11 +453,11 @@ export default class DeviceList {
if (this._deviceTrackingStatus[userId]) {
console.log("Marking device list outdated for", userId);
this._deviceTrackingStatus[userId] = TRACKING_STATUS_PENDING_DOWNLOAD;
}
// we don't yet persist the tracking status, since there may be a lot
// of calls; we save all data together once the sync is done

this._dirty = true;
// we don't yet persist the tracking status, since there may be a lot
// of calls; we save all data together once the sync is done
this._dirty = true;
}
}

/**
Expand Down

0 comments on commit 0eb7212

Please sign in to comment.