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, }; }