Skip to content

Commit 0af6655

Browse files
committed
refac
1 parent 9a145c5 commit 0af6655

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/lib/components/layout/Sidebar.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,9 @@
368368
navElement.style['-webkit-app-region'] = 'drag';
369369
}
370370
}
371+
372+
await initChannels();
373+
await initChatList();
371374
});
372375
373376
chats.subscribe((value) => {
@@ -512,8 +515,6 @@
512515
<button
513516
class="flex flex-col flex-1 cursor-[e-resize]"
514517
on:click={async () => {
515-
await initChannels();
516-
await initChatList();
517518
showSidebar.set(!$showSidebar);
518519
}}
519520
>

0 commit comments

Comments
 (0)