Allow join/leave in platform mode
This commit is contained in:
parent
4222e7364f
commit
210e358dc5
1 changed files with 13 additions and 16 deletions
|
|
@ -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}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue