diff --git a/src/LegacySocket/chats.ts b/src/LegacySocket/chats.ts index 9bd39da..f093d9b 100644 --- a/src/LegacySocket/chats.ts +++ b/src/LegacySocket/chats.ts @@ -271,6 +271,10 @@ const makeChatsSocket = (config: LegacySocketConfig) => { ev.emit('blocklist.set', { blocklist }) }) + socketEvents.on('ws-close', () => { + chatsDebounceTimeout.cancel() + }) + return { ...sock, sendChatsQuery,