chore: remove obsolete channel unread hook

This commit is contained in:
Tim
2025-08-23 02:28:06 +08:00
parent c79bcac217
commit b2783a0168
8 changed files with 131 additions and 45 deletions

View File

@@ -55,7 +55,10 @@ const subscribe = (destination, callback) => {
try {
const subscription = client.value.subscribe(destination, (message) => {
try {
if (destination.includes('/queue/unread-count')) {
if (
destination.includes('/queue/unread-count') ||
destination.includes('/queue/channel-unread')
) {
callback(message)
} else {
const parsedMessage = JSON.parse(message.body)