Skip to content

Instantly share code, notes, and snippets.

@merrickluo
Created September 1, 2016 07:49
Show Gist options
  • Save merrickluo/e45738480eaeb09182b5ff442d145390 to your computer and use it in GitHub Desktop.
Save merrickluo/e45738480eaeb09182b5ff442d145390 to your computer and use it in GitHub Desktop.

Hey, thx for the quick reply, my code is a little complex, but I'm sure it's connected when I create the query:

            Logger.i("SendBird", "fetching chat list")
            if (SendBird.getConnectionState() != SendBird.ConnectionState.OPEN) {
                // exception
            }
            val query = GroupChannel.createMyGroupChannelListQuery()
            if (query == null) {
                // exception
            } else {
//              while (query.hasNext()) {
                    query.setIncludeEmpty(false)
                    query.next { list, e ->
                        if (e != null) {
                            // exception
                        } else {
                            // convert data
                        }
                    }
//                }
            }

Besides, all other API call works except this one, even this was working yesterday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment