sending meta data with each comment/reply
Hey Cord team, I was wondering if there is a way to send meta data with each comment/reply (not the thread) using Cord React components.
I tried to use `beforeMessageCreated` prop of `<CordProvider` but it returns thread metadata only when it's the first comment of the thread.
![cord icon logo](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fcord-icon.19285d53.png&w=32&q=75)
Yes, messages can have their own metadata, and you should be able to set it in the beforeMessageCreate callback. There are two places in that to set the metadata, the metadata property (which sets the metadata for the message) and the threadCreate.metadata property (which sets the metadata for the thread, if one needs to be created).
Alternatively, with our beta components, you can set the initialValue property of the Composer component to whatever you want, and that will be used to set values for the messages created with that composer.