Skip to main content
Version: v4

EditMessageFormComponent

The edit message form displays a modal that's opened when a user edits a message. The component uses the MessageActionsService to know which message is being edited.

By default this is displayed within the stream-channel component.

Usage

constructor(private messageActionsService: MessageActionsService) {
// Open the modal
this.messageActionsService.messageToEdit$.next(<stream message>);
// Close the modal
this.messageActionsService.messageToEdit$.next(undefined);
}
<stream-edit-message-form></stream-edit-message-form>

Customization

You can provide your own custom component using the customTemplatesService.editMessageFormTemplate$ property

Did you find this page helpful?