You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Update src/components/views/right_panel/UserInfo.tsx
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
This commit is contained in:
@@ -188,7 +188,7 @@ function DeviceItem({userId, device}: {userId: string, device: IDevice}) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let deviceName;
|
let deviceName;
|
||||||
if (device.getDisplayName() === null || device.getDisplayName().trim() === "") {
|
if (!device.getDisplayName()?.trim()) {
|
||||||
deviceName = device.deviceId;
|
deviceName = device.deviceId;
|
||||||
} else {
|
} else {
|
||||||
deviceName = device.ambiguous ?
|
deviceName = device.ambiguous ?
|
||||||
|
|||||||
Reference in New Issue
Block a user