diff --git a/src/matrix/e2ee/Account.js b/src/matrix/e2ee/Account.js index da28c6fe..b704d7f5 100644 --- a/src/matrix/e2ee/Account.js +++ b/src/matrix/e2ee/Account.js @@ -231,7 +231,7 @@ export class Account { writeSync(deviceOneTimeKeysCount, txn, log) { // we only upload signed_curve25519 otks - const otkCount = deviceOneTimeKeysCount.signed_curve25519 || 0; + const otkCount = deviceOneTimeKeysCount.signed_curve25519; if (Number.isSafeInteger(otkCount) && otkCount !== this._serverOTKCount) { txn.session.set(SERVER_OTK_COUNT_SESSION_KEY, otkCount); log.set("otkCount", otkCount);