Info:
This is documentation for Stream Chat Angular SDK v4, which is no longer actively maintained. For up-to-date documentation, see the latest version (v7).

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

Add Chat to my app: getstream.io/SKILL.md

The fastest way to build with Stream. Start a new project or improve an existing one. Full CLI and documentation integration out of the box.


Ask your agent:

/stream Build me a Social App with Feeds and Moderation.
/stream Any livestream calls running?
/stream Chat Angular v4: <Your Question>