From 94cc8b99b0255ce0c040b4cf9c5be94221886a79 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 22 Feb 2021 11:21:56 +0100 Subject: [PATCH] don't need to check this actually, sync response should be there --- src/matrix/Session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/Session.js b/src/matrix/Session.js index b239000d..4da510f6 100644 --- a/src/matrix/Session.js +++ b/src/matrix/Session.js @@ -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)); }