You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
Use checkDeviceTrust when computing untrusted devices
Apparently we missed using cross-signing trust in the js-sdk itself
This commit is contained in:
@@ -955,8 +955,10 @@ MegolmEncryption.prototype._getDevicesInRoom = async function(room) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const deviceTrust = this._crypto.checkDeviceTrust(userId, deviceId);
|
||||||
|
|
||||||
if (userDevices[deviceId].isBlocked() ||
|
if (userDevices[deviceId].isBlocked() ||
|
||||||
(userDevices[deviceId].isUnverified() && isBlacklisting)
|
(!deviceTrust.isVerified() && isBlacklisting)
|
||||||
) {
|
) {
|
||||||
if (!blocked[userId]) {
|
if (!blocked[userId]) {
|
||||||
blocked[userId] = {};
|
blocked[userId] = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user