We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c445124 commit 4f8dfe9Copy full SHA for 4f8dfe9
1 file changed
app/src/main/java/com/example/chattutorial/MainActivity.kt
@@ -23,13 +23,10 @@ class MainActivity : AppCompatActivity() {
23
ChatDomain.Builder(client, applicationContext).build()
24
25
// 2 - Authenticate and connect the user
26
- val user = User(
27
- id = "tutorial-droid",
28
- extraData = mutableMapOf(
29
- "name" to "Tutorial Droid",
30
- "image" to "https://bit.ly/2TIt8NR",
31
- ),
32
- )
+ val user = User(id = "tutorial-droid").apply {
+ name = "Tutorial Droid"
+ image = "https://bit.ly/2TIt8NR"
+ }
33
client.connectUser(
34
user = user,
35
token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoidHV0b3JpYWwtZHJvaWQifQ.NhEr0hP9W9nwqV7ZkdShxvi02C5PR7SJE7Cs4y7kyqg"
0 commit comments