forked from mystiq/hydrogen-web
make logic more explicit
This commit is contained in:
parent
4a2faed198
commit
9a7abb1899
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue