don't need to check this actually, sync response should be there

This commit is contained in:
Bruno Windels 2021-02-22 11:21:56 +01:00
parent f0d9d13f4e
commit 94cc8b99b0

View file

@ -393,7 +393,7 @@ export class Session {
changes.e2eeAccountChanges = this._e2eeAccount.writeSync(deviceOneTimeKeysCount, txn, log);
}
const deviceLists = syncResponse?.device_lists;
const deviceLists = syncResponse.device_lists;
if (this._deviceTracker && Array.isArray(deviceLists?.changed) && deviceLists.changed.length) {
await log.wrap("deviceLists", log => this._deviceTracker.writeDeviceChanges(deviceLists.changed, txn, log));
}