Timothy Jaeryang Baek 4 ماه پیش
والد
کامیت
e7c501677c
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      src/lib/components/channel/Channel.svelte
  2. 1 1
      src/lib/components/chat/Chat.svelte

+ 1 - 1
src/lib/components/channel/Channel.svelte

@@ -190,7 +190,7 @@
 	});
 
 	onDestroy(() => {
-		// $socket?.off('channel-events', channelEventHandler);
+		$socket?.off('channel-events', channelEventHandler);
 	});
 </script>
 

+ 1 - 1
src/lib/components/chat/Chat.svelte

@@ -427,7 +427,7 @@
 	onDestroy(() => {
 		chatIdUnsubscriber?.();
 		window.removeEventListener('message', onMessageHandler);
-		// $socket?.off('chat-events');
+		$socket?.off('chat-events', chatEventHandler);
 	});
 
 	// File upload functions