Skip to content

The editMessage inside the submit handler is missing the 'customMessageData' #1693

@alexlopezit

Description

@alexlopezit

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions