constructor(private messageActionsService: MessageActionsService) {
// Open the modal
this.messageActionsService.messageToEdit$.next(<stream message>);
// Close the modal
this.messageActionsService.messageToEdit$.next(undefined);
}
This is documentation for
Stream Chat Angular SDK v4, which is nolonger actively maintained. For up-to-date documentation, see the latest version (v5).
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
<stream-edit-message-form></stream-edit-message-form>
Customization
You can provide your own custom component using the customTemplatesService.editMessageFormTemplate$
property
On this page: