From 4c08e126caba2cc5a48f65e02d69de0365cc9a93 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 5 Mar 2020 12:17:42 +0000 Subject: [PATCH] Fix regression in key backup request params This converts the cross-signing trust to a boolean as required by the homeserver. Regressed by https://github.com/vector-im/riot-web/issues/12599 Fixes https://github.com/vector-im/riot-web/issues/12618 --- src/crypto/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crypto/index.js b/src/crypto/index.js index 85f9debd1..7e3867f9c 100644 --- a/src/crypto/index.js +++ b/src/crypto/index.js @@ -2143,11 +2143,12 @@ Crypto.prototype._backupPendingKeys = async function(limit) { const device = this._deviceList.getDeviceByIdentityKey( olmlib.MEGOLM_ALGORITHM, session.senderKey, ); + const verified = this._checkDeviceInfoTrust(this._userId, device).isVerified(); data[roomId]['sessions'][session.sessionId] = { first_message_index: firstKnownIndex, forwarded_count: forwardedCount, - is_verified: this._checkDeviceInfoTrust(this._userId, device), + is_verified: verified, session_data: encrypted, }; }