make logic more explicit

This commit is contained in:
Bruno Windels 2020-09-08 18:27:35 +02:00
parent 4a2faed198
commit 9a7abb1899

View File

@ -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;
}