cometchat / chat-sdk-react-native

Voice & Video Calling and Text Chat SDK for React Native
Other
18 stars 17 forks source link

getJoinedGroups doesn't proceed #19

Closed shiroganee closed 3 years ago

shiroganee commented 4 years ago

Describe the problem

Whenever calling getJoinedGroups you never get result or error. It just is stuck on that function

What was the expected behavior?

It should return groups

Reproduction

call that function after being logged in

Environment

Version used 2.1.0

mayur-bhandari commented 3 years ago

Hello @shiroganee ,

Can you please check if CometChat.getConnectionStatus() returns connected. And call getJoinedGroups() only if the status returns connected.

shiroganee commented 3 years ago

That was the reason! thank you for quick answer @mayur-bhandari