mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-10 20:17:32 +01:00
make logic more explicit
This commit is contained in:
parent
4a2faed198
commit
9a7abb1899
@ -291,7 +291,8 @@ export class DeviceTracker {
|
|||||||
}
|
}
|
||||||
// filter out our own device
|
// filter out our own device
|
||||||
const devices = flattenedDevices.filter(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;
|
return devices;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user