stream-chat-js
stream-chat-js copied to clipboard
JS / Browser Client - Build Chat with GetStream.io
## Description If a refetch of the same message set takes place, it is possible, that the same message will be added to the channel state twice. This can happen...
Hi team, I noticed that the type definition for `Channel.lastMessage` seems to be incorrect. Here's a snippet from `node_modules/stream-chat/dist/types/channel.d.ts` (version `8.10.1`): ```ts /** * lastMessage - return the last message,...
how do i connect to a chat from server side to implement a bot? I want to listen/read and send/write messages. I tried this ``` await chatClient.connectUser( { id: AppConfig.ADMIN_BOT_ID,...
`channel.deleteReaction(message_id, { type: 'love', }).then(result => { if (BF.community_current_topic && BF.community_current_topic.channel == channel_type) { viewEventTopic(BF.community_current_topic.id, BF.community_current_topic.channel, window.scrollY) } else { BF.getChannelMessages(displayMainMessages) } }, error => { console.log(error); }); } else...
I have build error while using `tsc`: Error: `node_modules/stream-chat/src/client.ts:1339:56 - error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'APIError'.` bug exist in migration from 6.7.3...
I was testing my code to create channels and encountered this error. Note that I'm not sending an id explicitly while creating a channel, the documentation says that it will...
**Describe the bug** Watching a channel while already watched causes issues. (double replied messages when replied to a deleted message) **To Reproduce** Steps to reproduce the behavior: - Watch a...
In multiple methods ie `client.search()`, `client.queryChannels()` and `client.queryUsers()`, the client waits for the web socket connection like so ```javascript await this.wsPromise ``` If `await this.wsPromise` is awaiting and some other...
It would be better I we can see if the user is currently using a channel or not and show their online presence Right now I came across watcher count...
Channel object returned from `queryChannels` API contains a `channel.data.updated_at` property but this value is not updated live on sending new message to the channel for example. I would expect either...