Timothy Jaeryang Baek 4 months ago
parent
commit
e7c501677c
2 changed files with 2 additions and 2 deletions
  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