{ await initChatList(); }} /> { const res = await createNewChannel(localStorage.token, { name: name, access_control: access_control }).catch((error) => { toast.error(error); return null; }); if (res) { $socket.emit('join-channels', { auth: { token: $user.token } }); await initChannels(); showCreateChannel = false; } }} /> {#if $showSidebar}
{ showSidebar.set(!$showSidebar); }} /> {/if}