react-native-twilio-chat icon indicating copy to clipboard operation
react-native-twilio-chat copied to clipboard

getMessages doesn't resolve

Open czengg opened this issue 8 years ago • 1 comments

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);
       });
   });

czengg avatar Jun 21 '17 05:06 czengg

Having the same issue. getMessages doesn't load current messages for the channel. Any updates on this?

ppatel890 avatar Jul 05 '17 19:07 ppatel890