Skip to content

What is the best way to filter channels by name #2085

Discussion options

You must be logged in to vote

Edited:

Hello @lemberh.

You can use:

Filters.autocomplete("name", "some name here")

To filter channels by name. Please let me know it that solves your problem.

Original:

Hello @lemberh.

We currently do not support filtering by channel's name. Like: Filters.contains("name", "Channel name").

But, as you use direct channels, you could filter by the members of the channel. Like:

Filters.`in`("members", listOf("id1", "id2"))

You said: in the example search searches for the messages in the channels. What do you mean? I see an example that we are filtering by the type and we would like to have channels of the type message.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@lemberh
Comment options

@filbabic
Comment options

@tarunkhatri
Comment options

@filbabic
Comment options

Answer selected by filbabic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants