You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-01 04:43:29 +03:00
Merge pull request #1246 from matrix-org/jryans/xsign-trust-bool
Fix regression in key backup request params
This commit is contained in:
@@ -2143,11 +2143,12 @@ Crypto.prototype._backupPendingKeys = async function(limit) {
|
|||||||
const device = this._deviceList.getDeviceByIdentityKey(
|
const device = this._deviceList.getDeviceByIdentityKey(
|
||||||
olmlib.MEGOLM_ALGORITHM, session.senderKey,
|
olmlib.MEGOLM_ALGORITHM, session.senderKey,
|
||||||
);
|
);
|
||||||
|
const verified = this._checkDeviceInfoTrust(this._userId, device).isVerified();
|
||||||
|
|
||||||
data[roomId]['sessions'][session.sessionId] = {
|
data[roomId]['sessions'][session.sessionId] = {
|
||||||
first_message_index: firstKnownIndex,
|
first_message_index: firstKnownIndex,
|
||||||
forwarded_count: forwardedCount,
|
forwarded_count: forwardedCount,
|
||||||
is_verified: this._checkDeviceInfoTrust(this._userId, device),
|
is_verified: verified,
|
||||||
session_data: encrypted,
|
session_data: encrypted,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user