GetStream / stream-chat-js

JS / Browser Client - Build Chat with GetStream.io
https://getstream.io/chat/
Other
177 stars 75 forks source link

Query threads by channel ID #1307

Open Phu96 opened 3 months ago

Phu96 commented 3 months ago

I would like to query threads by the given channel ID, currently it's not supported.

vishalnarkhede commented 3 months ago

@Phu96 no we don't support it. Whats the usecase for it? Maybe we can provide some alternative solution for it.

Phu96 commented 3 months ago

@Phu96 no we don't support it. Whats the usecase for it? Maybe we can provide some alternative solution for it.

@vishalnarkhede Given the channel ID, I think the system should support querying all threads related to that channel

shubham-CAW commented 2 months ago

@Phu96 I have implemented it but as a temporary solution, fetch all threads, and use next to make the next thread API call unless there is no next present in the API call, you will end up making multiple API calls to get all the channels thread and then you filter by channelId. vishalnarkhede we should support this. Getting threads by channelId.