|
await editMessage(({ |
|
...message, |
|
...updatedMessage, |
|
} as unknown) as UpdatedMessage<StreamChatGenerics>); |
We know we could use the current provided Channel prop doUpdateMessageRequest but it would be easier if the handleSubmit called from useMessageInputContext supports customMessageData as it indicated in it's type definition.
The problem is that by using doUpdateMessageRequest is too complex to try and add any custom properties to the message while editing.