react-native-twilio-chat
react-native-twilio-chat copied to clipboard
getMessages doesn't resolve
Promise returned by channel.getMessages(10) not resolving.
I went inside the iOS code to set breakpoints and narrowed down to the fact that the callback for getLastMessagesWithCount doesn't seem to be called.
RN 44.2 react-native-twilio-chat 0.3.11
Below code does not get to console.log:
channel.initialize()
.then(() => {
channel.getMessages(10)
.then((messages) => {
console.log(messages);
});
});
Having the same issue. getMessages doesn't load current messages for the channel. Any updates on this?