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

Support custom content types with prepareMessage #195

Closed nplasterer closed 9 months ago

nplasterer commented 9 months ago

The RN SDK didn’t support custom content types in the conversation.prepareMessage method! The support for custom content types seems to have introduced a SendOptions parameter to conversation.send in which we can specify a custom JS content type. Most integrators never use conversation.send directly, instead using conversation.prepareMessage and the sendPreparedMessage method (imported directly from the SDK import { sendPreparedMessage } from "@xmtp/react-native-sdk")

alexrisch commented 9 months ago

Fixed in https://github.com/xmtp/xmtp-react-native/pull/198