Merge pull request #12 from TwilioDevEd/update-chat-sdk-ga

Update Chat SDK to 1.0 for GA
This commit is contained in:
Jeff Linwood
2017-05-11 07:35:13 -05:00
committed by GitHub
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/> <input id="chat-input" type="text" placeholder="say anything" autofocus/>
</section> </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="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="index.js"></script> <script src="index.js"></script>
</body> </body>

View File

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