You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
Using this with chat 1.2 works fine, 2.2/3.0 all have issues in this section:
var channel = 'CHXXXXXXXXXXXXXXXXXX';
var promise = chatClient.getChannelBySid(channel);
promise.then(function(channel) {
generalChannel = channel;
setupChannel();
}).catch(function(){
// If it doesn't exist, let's create it
chatClient.createChannel({
uniqueName: 'general',
friendlyName: 'General Chat Channel'
}).then(function(channel) {
console.log('Created general channel:');
console.log(channel);
generalChannel = channel;
setupChannel();
});
});
}
Seems to ignore or be unable to handle the returned promise? The best way to test is to use the same code and just switch the js libraries to 2.2 and 3.0.
The text was updated successfully, but these errors were encountered:
Using this with chat 1.2 works fine, 2.2/3.0 all have issues in this section:
var channel = 'CHXXXXXXXXXXXXXXXXXX';
var promise = chatClient.getChannelBySid(channel);
Seems to ignore or be unable to handle the returned promise? The best way to test is to use the same code and just switch the js libraries to 2.2 and 3.0.
The text was updated successfully, but these errors were encountered: