feat: channel socket integration

This commit is contained in:
Timothy Jaeryang Baek
2024-12-22 19:40:01 -07:00
parent eaecd15e69
commit f1d21fc59a
13 changed files with 509 additions and 31 deletions
+3 -2
View File
@@ -17,7 +17,8 @@
scrollPaginationEnabled,
currentChatPage,
temporaryChatEnabled,
channels
channels,
socket
} from '$lib/stores';
import { onMount, getContext, tick, onDestroy } from 'svelte';
@@ -151,7 +152,7 @@
};
const initChannels = async () => {
channels.set(await getChannels(localStorage.token));
await channels.set(await getChannels(localStorage.token));
};
const initChatList = async () => {