diff --git a/src/matrix/e2ee/DeviceTracker.js b/src/matrix/e2ee/DeviceTracker.js index 1ee704c8..8b90caf0 100644 --- a/src/matrix/e2ee/DeviceTracker.js +++ b/src/matrix/e2ee/DeviceTracker.js @@ -291,7 +291,8 @@ export class DeviceTracker { } // filter out our own device const devices = flattenedDevices.filter(device => { - return !(device.userId === this._ownUserId && device.deviceId === this._ownDeviceId); + const isOwnDevice = device.userId === this._ownUserId && device.deviceId === this._ownDeviceId; + return !isOwnDevice; }); return devices; }