diff --git a/src/crypto/algorithms/megolm.js b/src/crypto/algorithms/megolm.js index 274e14cbf..a540b4446 100644 --- a/src/crypto/algorithms/megolm.js +++ b/src/crypto/algorithms/megolm.js @@ -955,8 +955,10 @@ MegolmEncryption.prototype._getDevicesInRoom = async function(room) { continue; } + const deviceTrust = this._crypto.checkDeviceTrust(userId, deviceId); + if (userDevices[deviceId].isBlocked() || - (userDevices[deviceId].isUnverified() && isBlacklisting) + (!deviceTrust.isVerified() && isBlacklisting) ) { if (!blocked[userId]) { blocked[userId] = {};