xmtp / xmtp-react-native

A package you can use to build with XMTP in a React Native or Expo app.
MIT License
41 stars 19 forks source link

Bug: `listBatchMessages` does not handle Date parameters #69

Closed nmalzieu closed 1 year ago

nmalzieu commented 1 year ago

Describe the bug

it seems the listBatchMessagesmethod has an issue with dates : it expects the before and after to be Date objects but when I try to send a date it says ERROR in listBatchMessages [Error: The 6th argument cannot be cast to type Double? also it supposedly returns DecodedMessage objects where sent is of type Date but here I actually have decodedMessage.sent = 709725751.7279999 (what does this represent? It’s not a timestamp - this message has been sent recently)

Expected behavior

No response

Steps to reproduce the bug

No response

daria-github commented 1 year ago

Closed, resolved with https://github.com/xmtp/xmtp-react-native/pull/71

nplasterer commented 1 year ago

Release in https://github.com/xmtp/xmtp-react-native/releases/tag/v1.6.1