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