diff --git a/plugins/love-resources/src/components/RoomPopup.svelte b/plugins/love-resources/src/components/RoomPopup.svelte index a226ea6dca..5741408c58 100644 --- a/plugins/love-resources/src/components/RoomPopup.svelte +++ b/plugins/love-resources/src/components/RoomPopup.svelte @@ -129,7 +129,6 @@ } const me = (getCurrentAccount() as PersonAccount).person - $: myRoom = isOffice(room) && room.person === me
@@ -196,9 +195,9 @@ />
{/if} - {#if (joined && !myRoom) || (!allowLeave && $myRequests.length === 0 && !myRoom)} + {#if $location.path[2] !== loveId || (joined && allowLeave) || !joined}
- {#if allowLeave} + {#if joined && allowLeave} - {:else if $myRequests.length === 0 && !myRoom} + {:else if !joined} p.room === room._id) - if (thisRoomRequest !== undefined) return for (const req of currentRequests) { await client.remove(req) }