Skip to content

Commit

Permalink
(docs-channels) fix function names & links
Browse files Browse the repository at this point in the history
(cherry picked from commit 395c90bb848d9aafbdb3e602b11cd23a6e2df60e)
  • Loading branch information
kanat authored and JcMinarro committed Jan 8, 2024
1 parent 3b9364c commit 03ebc72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docusaurus/docs/Android/03-client/02-channels.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Channels are unique either by the specified channel id or by the list of members

## Querying Channel List

You can query channels based on built-in fields as well as any custom field you add to channels. Multiple filters can be combined using AND, OR logical operators, each filter can use its comparison (equality, inequality, greater than, greater or equal, etc.). You can find the complete list of supported operators in the [query syntax section](https://getstream.io/chat/docs/react/query_syntax/) of the docs.
You can query channels based on built-in fields as well as any custom field you add to channels. Multiple filters can be combined using AND, OR logical operators, each filter can use its comparison (equality, inequality, greater than, greater or equal, etc.). You can find the complete list of supported operators in the [query syntax section](https://getstream.io/chat/docs/android/query_syntax_operators/?language=kotlin) of the docs.

As an example, let's say that you want to query the last conversations I participated in sorted by `last_message_at`.

Expand All @@ -26,7 +26,7 @@ val request = QueryChannelsRequest(
),
offset = 0,
limit = 10,
querySort = QuerySort.desc("last_message_at")
querySort = QuerySortByField.descByName("last_message_at")
).apply {
watch = true
state = true
Expand Down Expand Up @@ -173,7 +173,7 @@ val request = QueryChannelsRequest(
),
offset = 0,
limit = 10,
querySort = QuerySort.desc("last_message_at")
querySort = QuerySortByField.descByName("last_message_at")
).apply {
// Watches the channels automatically
watch = true
Expand Down

0 comments on commit 03ebc72

Please sign in to comment.