Skip to content

Commit 36ea816

Browse files
author
Carter Hudson
committed
clarify filters interpretation with comment
1 parent d04a766 commit 36ea816

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samplekotlin/src/main/java/com/example/chattutorial/MainActivity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ class MainActivity : AppCompatActivity(R.layout.activity_main) {
3232
)
3333

3434
// step 3 - set the channel list filter and order
35+
// this can be read as requiring only channels whose "type" is "messaging" AND whose "members"
36+
// include our "user.id"
3537
val filter = Filters.and(
3638
Filters.eq("type", "messaging"),
3739
Filters.`in`("members", listOf(user.id))

0 commit comments

Comments
 (0)