This repository was archived by the owner on Jul 27, 2022. It is now read-only.

Description
We have a problem with slow Twilio response when we try to retrieve channels and messages using the following Twilio SDK methods:
chatClient.getChannelBySid (channelId)
chatClient.getLocalChannels ({crit: ‘lastMessage’, order: ‘descending’})
channel.getMessages (5)
We are not sure which method creates a problem, but it happens that the entire UI freezes while executing the code section in which these methods are called. We have also tried the Twilio demo application and noticed the same behavior:
https://github.com/twilio/TwilioChatJsReactNative
The performance issue happens even if we try to fetch 10 or 20 messages and can take up to 10 seconds or more.
Can you please help with this issue as it is making the whole application unusable?
Thanks