@@ -27,30 +27,30 @@ class MainActivity : AppCompatActivity() {
2727
2828 // Step 1 - Set up the client for API calls, the domain for offline storage and the UI components
2929 val client = ChatClient .Builder (" b67pax5b2wdq" , applicationContext)
30- .logLevel(ChatLogLevel .ALL )
31- .build()
30+ .logLevel(ChatLogLevel .ALL )
31+ .build()
3232 ChatDomain .Builder (client, applicationContext).build()
3333 ChatUI .Builder (applicationContext).build()
3434
3535 // Step 2 - Authenticate and connect the user
3636 val user = User (
37- id = " summer-brook-2 " ,
38- extraData = mutableMapOf (
39- " name" to " Paranoid Android " ,
40- " image" to " https://bit.ly/2TIt8NR" ,
41- ),
37+ id = " tutorial-droid " ,
38+ extraData = mutableMapOf (
39+ " name" to " Tutorial Droid " ,
40+ " image" to " https://bit.ly/2TIt8NR" ,
41+ ),
4242 )
4343 client.connectUser(
44- user = user,
45- token = " eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoic3VtbWVyLWJyb29rLTIifQ.CzyOx8kgrc61qVbzWvhV1WD3KPEo5ZFZH-326hIdKz0 "
44+ user = user,
45+ token = " eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoidHV0b3JpYWwtZHJvaWQifQ.NhEr0hP9W9nwqV7ZkdShxvi02C5PR7SJE7Cs4y7kyqg "
4646 ).enqueue()
4747
4848 // Step 3 - Set the channel list filter and order
4949 // This can be read as requiring only channels whose "type" is "messaging" AND
5050 // whose "members" include our "user.id"
5151 val filter = Filters .and (
52- Filters .eq(" type" , " messaging" ),
53- Filters .`in `(" members" , listOf (user.id))
52+ Filters .eq(" type" , " messaging" ),
53+ Filters .`in `(" members" , listOf (user.id))
5454 )
5555 val viewModelFactory = ChannelListViewModelFactory (filter, ChannelListViewModel .DEFAULT_SORT )
5656 val viewModel: ChannelListViewModel by viewModels { viewModelFactory }
0 commit comments