We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50dec3a commit 86bd8e6Copy full SHA for 86bd8e6
1 file changed
apps/frontend/app/components/chat/ChatInterface.vue
@@ -111,6 +111,9 @@ const { ignoreUpdates: ignorePathUpdate } = watchIgnorable(
111
112
// Subscribe to a counter to check for messages from other concurrent sessions
113
watchImmediate(threadIdRef, (threadId) => {
114
+ if (!threadId)
115
+ return
116
+
117
console.log(`Subscribing to messages count of: ${threadId}`)
118
const { unsubscribe } = convex.onUpdate(
119
api.messages.countByThread,
0 commit comments