GetStream / stream-chat-flutter

Flutter Chat SDK - Build your own chat app experience using Dart, Flutter and the Stream Chat Messaging API.
https://getstream.io/chat/sdk/flutter/
Other
937 stars 342 forks source link

queryChannel should have option to not create a new channel #2018

Closed Jonny1987 closed 3 weeks ago

Jonny1987 commented 2 months ago

Please select which package this feature is related to

stream_chat

Which platforms would this feature impact?

iOS, Android

Is your feature request related to a problem?

I want to check if the channel exists without creating it if it doesn't and there doesn't seem to be a way to do this, and createChannel already exists for the purpose of creating a channel (and createChannel currently just calls queryChannel) so it doesn't make sense for queryChannel to do the same thing.

Describe the solution that you'd like

At least there should be a parameter in queryChannel to indicate whether a new channel should be created or not

Describe alternatives that you have considered

I tried using queryChannels too but this also creates the channel.

Additional context

No response

Code of Conduct

Jonny1987 commented 2 months ago

My mistake, queryChannels does query without creating a new channel so I can use that.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 20 days with no activity.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 20 days with no activity.

github-actions[bot] commented 3 weeks ago

This issue was closed because it has been inactive for 7 days since being marked as stale.