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
Fix lint
This commit is contained in:
@@ -473,8 +473,7 @@ MegolmEncryption.prototype._getDevicesInRoom = function(room) {
|
|||||||
// common and then added new devices before joining this one? --Matthew
|
// common and then added new devices before joining this one? --Matthew
|
||||||
//
|
//
|
||||||
// yup, see https://github.com/vector-im/riot-web/issues/2305 --richvdh
|
// yup, see https://github.com/vector-im/riot-web/issues/2305 --richvdh
|
||||||
var self = this;
|
return this._crypto.downloadKeys(roomMembers, false).then((devices) => {
|
||||||
return self._crypto.downloadKeys(roomMembers, false).then(function(devices) {
|
|
||||||
// remove any blocked devices
|
// remove any blocked devices
|
||||||
for (const userId in devices) {
|
for (const userId in devices) {
|
||||||
if (!devices.hasOwnProperty(userId)) {
|
if (!devices.hasOwnProperty(userId)) {
|
||||||
@@ -490,8 +489,8 @@ MegolmEncryption.prototype._getDevicesInRoom = function(room) {
|
|||||||
if (userDevices[deviceId].isBlocked() ||
|
if (userDevices[deviceId].isBlocked() ||
|
||||||
(userDevices[deviceId].isUnverified() &&
|
(userDevices[deviceId].isUnverified() &&
|
||||||
(room.getBlacklistUnverifiedDevices() ||
|
(room.getBlacklistUnverifiedDevices() ||
|
||||||
self._crypto.getGlobalBlacklistUnverifiedDevices())))
|
this._crypto.getGlobalBlacklistUnverifiedDevices()))
|
||||||
{
|
) {
|
||||||
delete userDevices[deviceId];
|
delete userDevices[deviceId];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user