This commit is contained in:
Timothy Jaeryang Baek 2025-08-09 22:59:19 +04:00
parent e9c2d9d035
commit e2b2e8b245

View file

@ -349,7 +349,7 @@
});
showSidebar.set(!$mobile ? localStorage.sidebar === 'true' : false);
showSidebar.subscribe((value) => {
showSidebar.subscribe(async (value) => {
localStorage.sidebar = value;
// nav element is not available on the first render
@ -509,7 +509,9 @@
>
<button
class="flex flex-col flex-1 cursor-[e-resize]"
on:click={() => {
on:click={async () => {
await initChannels();
await initChatList();
showSidebar.set(!$showSidebar);
}}
>