You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-09 10:22:46 +03:00
Fix device list update
s/flushNewDeviceRequests/refreshOutdatedDeviceLists/ - this got fixed on one PR and apparenlty I failed to merge the changes correctly
This commit is contained in:
@@ -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();
|
||||
});
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user