This commit is contained in:
Timothy Jaeryang Baek
2025-06-09 00:53:16 +04:00
parent c59b4cf379
commit 7969d8e8f3
4 changed files with 24 additions and 20 deletions
+6
View File
@@ -438,6 +438,12 @@
window.addEventListener('message', onMessageHandler);
$socket?.on('chat-events', chatEventHandler);
page.subscribe((page) => {
if (page.url.pathname === '/') {
initNewChat();
}
});
if (!$chatId) {
chatIdUnsubscriber = chatId.subscribe(async (value) => {
if (!value) {