Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

issues with later chat sdks #35

Closed
SeekTom opened this issue Jun 12, 2018 · 1 comment
Closed

issues with later chat sdks #35

SeekTom opened this issue Jun 12, 2018 · 1 comment

Comments

@SeekTom
Copy link

SeekTom commented Jun 12, 2018

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.

@po5i
Copy link
Contributor

po5i commented Oct 11, 2018

Recently the code base was updated to use chat v3. I just tested and everything works good!

Thanks for the feedback

@po5i po5i closed this as completed Oct 11, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants