diff --git a/src/crypto/index.js b/src/crypto/index.js index d4958304a..1a42288a8 100644 --- a/src/crypto/index.js +++ b/src/crypto/index.js @@ -764,7 +764,7 @@ Crypto.prototype._onSyncCompleted = function(syncData) { // if that failed, we fall back to invalidating everyone. console.warn("Error fetching changed device list", e); this._invalidateDeviceListForAllActiveUsers(); - return this._deviceList.flushNewDeviceRequests(); + return this._deviceList.refreshOutdatedDeviceLists(); }).done(); } else { // otherwise, we have to invalidate all devices for all users we @@ -853,7 +853,7 @@ Crypto.prototype._invalidateDeviceListsSince = function(oldSyncToken) { this._deviceList.invalidateUserDeviceList(u); } }); - return this._deviceList.flushNewDeviceRequests(); + return this._deviceList.refreshOutdatedDeviceLists(); }); };