New incoming chats don't stream to an open client
Closed this issue · 2 comments
th0rgall commented
New messages in existing chats stream to a client, but new chats themselves do not. If the user is using client-side navigation in a session, and happens to be checking if they have any new chats at the end of that, the chat view will display an out-of-date state. A reload is required to show any new incoming chats.
th0rgall commented
User behavior as mentioned here #75 (comment) further strengthens the need to fix this issue.
th0rgall commented
There is already code that should stream in new chats, perhaps it has a bug or isn't fully utilized:
welcometomygarden/src/lib/api/chat.ts
Lines 24 to 49 in 23b85b9