File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "users" : [
33 {
4- "id" : " 1 " ,
4+ "id" : " alice " ,
55 "name" : " Alice" ,
6677 "photoUrl" : " https://talkjs.com/new-web/avatar-7.jpg" ,
88 "role" : " default" ,
99 "welcomeMessage" : " Hi 👋"
1010 },
1111 {
12- "id" : " 2 " ,
12+ "id" : " sebastian " ,
1313 "name" : " Sebastian" ,
14141515 "photoUrl" : " https://talkjs.com/new-web/avatar-2.jpg" ,
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ const getUser = async (id) => {
1313
1414( async function ( ) {
1515 await Talk . ready ;
16- const alice = await getUser ( 1 ) ;
17- const sebastian = await getUser ( 2 ) ;
16+ const alice = await getUser ( "alice" ) ;
17+ const sebastian = await getUser ( "sebastian" ) ;
1818 const session = new Talk . Session ( {
1919 appId : "<APP_ID>" , // replace with your app ID
2020 me : sebastian ,
You can’t perform that action at this time.
0 commit comments