You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
In onSuccess calback for getMessagesCount method in RCTTwilioChatChannels.java, Long argument is being passed to promise.resolve, which, as far as I know, can't be done because react native doesn't implement conversion from Java Long to Javascript Number. The backtrace for the exception is as follows:
I've found, that it is suggested to use either 64bit double, or 53bit int (source: facebook/react-native#9685)
Can anyone give suggestion how it should be implemented?
The text was updated successfully, but these errors were encountered:
If anyone is looking for a quick hack to get the messages count, you can fetch the latest message with getMessages(1) and use the index property and increment it by 1. Note that this will probably only work if there are no deleted messages.
Hello,
In
onSuccess
calback forgetMessagesCount
method inRCTTwilioChatChannels.java
,Long
argument is being passed topromise.resolve
, which, as far as I know, can't be done because react native doesn't implement conversion from JavaLong
to JavascriptNumber
. The backtrace for the exception is as follows:I've found, that it is suggested to use either 64bit double, or 53bit int (source: facebook/react-native#9685)
Can anyone give suggestion how it should be implemented?
The text was updated successfully, but these errors were encountered: