Skip to content

Commit 0ed0a5a

Browse files
committed
Use correct channel id
1 parent 1b6b935 commit 0ed0a5a

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

rest-api/migrate-data-from-sendbird-to-talkjs/example-data/channels/example-channels.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"group_channels": [
33
{
44
"name": "TalkJS migration chat",
5-
"channel_url": "sendbird_group_channel_483424280_ac14e7e8e6d5b3bc2dd3979fb360ad432ae0d6e8",
5+
"channel_url": "sendbird_group_channel_483424280_ac14e7e8e6d5b3bc2dd3979fb360ad432ae0d6e9",
66
"cover_url": "https://static.sendbird.com/sample/cover/cover_14.jpg",
77
"created_at": 1736855603,
88
"max_length_message": 5000,
@@ -61,7 +61,7 @@
6161
"nickname": "Nina",
6262
"metadata": {}
6363
},
64-
"channel_url": "sendbird_group_channel_483424280_ac14e7e8e6d5b3bc2dd3979fb360ad432ae0d6e8",
64+
"channel_url": "sendbird_group_channel_483424280_ac14e7e8e6d5b3bc2dd3979fb360ad432ae0d6e9",
6565
"updated_at": 0,
6666
"message_survival_seconds": -1,
6767
"mentioned_users": [],

rest-api/migrate-data-from-sendbird-to-talkjs/example-data/messages/example-messages.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"message": "Hi, welcome to the migration channel!",
77
"custom_type": "",
88
"created_at": 1736855618748,
9-
"channel_url": "sendbird_group_channel_483424280_ac14e7e8e6d5b3bc2dd3979fb360ad432ae0d6e8",
9+
"channel_url": "sendbird_group_channel_483424280_ac14e7e8e6d5b3bc2dd3979fb360ad432ae0d6e9",
1010
"updated_at": 0,
1111
"mentioned_users": [],
1212
"mention_type": "users",
@@ -30,7 +30,7 @@
3030
"message": "Hi \ud83d\udc4b",
3131
"custom_type": "",
3232
"created_at": 1736855722175,
33-
"channel_url": "sendbird_group_channel_483424280_ac14e7e8e6d5b3bc2dd3979fb360ad432ae0d6e8",
33+
"channel_url": "sendbird_group_channel_483424280_ac14e7e8e6d5b3bc2dd3979fb360ad432ae0d6e9",
3434
"updated_at": 0,
3535
"mentioned_users": [],
3636
"mention_type": "users",
@@ -54,7 +54,7 @@
5454
"message": "Hi, looking forward to the migration!",
5555
"custom_type": "",
5656
"created_at": 1736855760789,
57-
"channel_url": "sendbird_group_channel_483424280_ac14e7e8e6d5b3bc2dd3979fb360ad432ae0d6e8",
57+
"channel_url": "sendbird_group_channel_483424280_ac14e7e8e6d5b3bc2dd3979fb360ad432ae0d6e9",
5858
"updated_at": 0,
5959
"mentioned_users": [],
6060
"mention_type": "users",
@@ -78,7 +78,7 @@
7878
"message": "Let's try importing this chat into TalkJS!",
7979
"custom_type": "",
8080
"created_at": 1736856656811,
81-
"channel_url": "sendbird_group_channel_483424280_ac14e7e8e6d5b3bc2dd3979fb360ad432ae0d6e8",
81+
"channel_url": "sendbird_group_channel_483424280_ac14e7e8e6d5b3bc2dd3979fb360ad432ae0d6e9",
8282
"updated_at": 0,
8383
"mentioned_users": [],
8484
"mention_type": "users",
@@ -100,15 +100,15 @@
100100
"channel": {
101101
"freeze": false,
102102
"is_ephemeral": false,
103-
"channel_url": "sendbird_group_channel_483424280_ac14e7e8e6d5b3bc2dd3979fb360ad432ae0d6e8",
103+
"channel_url": "sendbird_group_channel_483424280_ac14e7e8e6d5b3bc2dd3979fb360ad432ae0d6e9",
104104
"name": "TalkJS migration chat",
105105
"cover_url": "https://static.sendbird.com/sample/cover/cover_14.jpg",
106106
"data": "",
107107
"max_length_message": 5000,
108108
"created_at": 1736855603,
109109
"custom_type": "",
110110
"channel": {
111-
"channel_url": "sendbird_group_channel_483424280_ac14e7e8e6d5b3bc2dd3979fb360ad432ae0d6e8",
111+
"channel_url": "sendbird_group_channel_483424280_ac14e7e8e6d5b3bc2dd3979fb360ad432ae0d6e9",
112112
"name": "TalkJS migration chat",
113113
"cover_url": "https://static.sendbird.com/sample/cover/cover_14.jpg",
114114
"data": "",
@@ -134,7 +134,7 @@
134134
"message": "Let's try importing this chat into TalkJS!",
135135
"custom_type": "",
136136
"created_at": 1736856656811,
137-
"channel_url": "sendbird_group_channel_483424280_ac14e7e8e6d5b3bc2dd3979fb360ad432ae0d6e8",
137+
"channel_url": "sendbird_group_channel_483424280_ac14e7e8e6d5b3bc2dd3979fb360ad432ae0d6e9",
138138
"updated_at": 0,
139139
"mentioned_users": [],
140140
"mention_type": "users",

rest-api/migrate-data-from-sendbird-to-talkjs/script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ Talk.ready.then(function () {
1919
conversation.setParticipant(nina);
2020

2121
var chatbox = window.talkSession.createChatbox(conversation);
22+
chatbox.select(conversation);
2223
chatbox.mount(document.getElementById("talkjs-container"));
2324
});

0 commit comments

Comments
 (0)