Update Chat SDK to 1.0 for GA

This commit is contained in:
Jeffrey Linwood
2017-05-11 07:33:31 -05:00
parent 53b0ae498d
commit 3e3bcf2338
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@
<input id="chat-input" type="text" placeholder="say anything" autofocus/>
</section>
<script src="///media.twiliocdn.com/sdk/js/chat/v0.12/twilio-chat.js"></script>
<script src="https://media.twiliocdn.com/sdk/js/chat/v1.0/twilio-chat.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="index.js"></script>
</body>

View File

@@ -53,7 +53,7 @@ $(function() {
// Initialize the Chat client
chatClient = new Twilio.Chat.Client(data.token);
chatClient.getUserChannels().then(createOrJoinGeneralChannel);
chatClient.getSubscribedChannels().then(createOrJoinGeneralChannel);
});
function createOrJoinGeneralChannel() {