mirror of
https://github.com/coracle-social/flotilla.git
synced 2025-12-10 19:07:06 +00:00
Allow join/leave in platform mode
This commit is contained in:
@@ -21,7 +21,6 @@
|
|||||||
memberships,
|
memberships,
|
||||||
roomsByUrl,
|
roomsByUrl,
|
||||||
GENERAL,
|
GENERAL,
|
||||||
PLATFORM_RELAY,
|
|
||||||
} from "@app/state"
|
} from "@app/state"
|
||||||
import {checkRelayConnection, checkRelayAuth} from "@app/commands"
|
import {checkRelayConnection, checkRelayAuth} from "@app/commands"
|
||||||
import {pushModal} from "@app/modal"
|
import {pushModal} from "@app/modal"
|
||||||
@@ -98,21 +97,19 @@
|
|||||||
Create Invite
|
Create Invite
|
||||||
</Button>
|
</Button>
|
||||||
</li>
|
</li>
|
||||||
{#if !PLATFORM_RELAY}
|
<li>
|
||||||
<li>
|
{#if getMembershipUrls($userMembership).includes(url)}
|
||||||
{#if getMembershipUrls($userMembership).includes(url)}
|
<Button on:click={leaveSpace} class="text-error">
|
||||||
<Button on:click={leaveSpace} class="text-error">
|
<Icon icon="exit" />
|
||||||
<Icon icon="exit" />
|
Leave Space
|
||||||
Leave Space
|
</Button>
|
||||||
</Button>
|
{:else}
|
||||||
{:else}
|
<Button on:click={joinSpace}>
|
||||||
<Button on:click={joinSpace}>
|
<Icon icon="login-2" />
|
||||||
<Icon icon="login-2" />
|
Join Space
|
||||||
Join Space
|
</Button>
|
||||||
</Button>
|
{/if}
|
||||||
{/if}
|
</li>
|
||||||
</li>
|
|
||||||
{/if}
|
|
||||||
</ul>
|
</ul>
|
||||||
</Popover>
|
</Popover>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user