From e7c501677cd9553d37c67106295c17900c1d690c Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 31 Dec 2024 03:54:43 -0800 Subject: [PATCH] refac --- src/lib/components/channel/Channel.svelte | 2 +- src/lib/components/chat/Chat.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/channel/Channel.svelte b/src/lib/components/channel/Channel.svelte index 6552365ea..b205afcb3 100644 --- a/src/lib/components/channel/Channel.svelte +++ b/src/lib/components/channel/Channel.svelte @@ -190,7 +190,7 @@ }); onDestroy(() => { - // $socket?.off('channel-events', channelEventHandler); + $socket?.off('channel-events', channelEventHandler); }); diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 6e0636c2c..d5982af90 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/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