UBERF-10418: Removed empty popup in the user's personal room (#8775)

Signed-off-by: Alexander Platov <alexander.platov@hardcoreeng.com>
This commit is contained in:
Alexander Platov 2025-04-30 11:41:37 +03:00 committed by GitHub
parent e5f9585378
commit 20d38fae14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,7 +89,7 @@
e.stopPropagation()
e.preventDefault()
if (person !== undefined) {
if ($myInfo === undefined) return
if ($myInfo === undefined || (person._id === me && $myInfo?.room === room._id)) return
showPopup(PersonActionPopup, { room, person: person._id }, eventToHTMLElement(e))
} else {
await openRoom(x, y)