direct message cannot leave client side
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script>
|
||||
|
||||
import { layout, current_room_name } from './Store_chat';
|
||||
import { layout, current_room_name, current_room_type } from './Store_chat';
|
||||
import { get_room_users, leave_room } from './Request_rooms';
|
||||
import Button from './Element_button.svelte';
|
||||
|
||||
@@ -41,9 +41,11 @@
|
||||
|
||||
<!-- panel_room_set -->
|
||||
<div class="panel panel_room_set __border_top">
|
||||
<Button on_click={user_leave_room}>
|
||||
leave
|
||||
</Button>
|
||||
{#if $current_room_type !== "direct"}
|
||||
<Button on_click={user_leave_room}>
|
||||
leave
|
||||
</Button>
|
||||
{/if}
|
||||
<p>room users :</p>
|
||||
<div class="room_users">
|
||||
<div class="__show_if_only_child">
|
||||
|
||||
Reference in New Issue
Block a user