# MessageBouncePromptComponent

The component watches for the [`channelService.bouncedMessage$` stream](https://getstream.io/chat/docs/sdk/angular/v5/services/ChannelService/#bouncedmessage) and opens the bounce modal if a message is emitted.

**Please note that component supports the old version of moderation (v1), the [new version](https://getstream.io/moderation/docs/node/) isn't yet supported.**

## Usage

When a user tries to send a message that voilates the content guidelines set up by a semantic filter the `StreamMessage` object will have the following format:

- `type` will be `error`
- the `moderation_details` property will contain the details of the error

The built-in [message component](https://getstream.io/chat/docs/sdk/angular/v5/components/MessageComponent/) will open the bounce prompt when a bounced message is clicked. If you have a custom UI, this is how you can do that:

```typescript
constructor(private channelService: ChannelService) {
  // Open the modal
  this.messageActionsService.bouncedMessage$.next(<stream message>);
  // Close the modal
  this.messageActionsService.bouncedMessage$.next(undefined);
}
```

The built-in [channel component](https://getstream.io/chat/docs/sdk/angular/v5/components/ChannelComponent/) displays the `stream-message-bounce-prompt` component. If you have a custom UI, this is how you can do that:

```html
<stream-message-bounce-prompt></stream-message-bounce-prompt>
```

![Message Bounce Screenshot](https://getstream.io/docs-assets/images/d94e0608b4f3.png)

## Customization

You can provide your own custom component using the [`customTemplatesService.messageBouncePromptTemplate$` property](https://getstream.io/chat/docs/sdk/angular/v5/services/CustomTemplatesService/#messagebounceprompttemplate)

[//]: # "Start of generated content"
[//]: # "End of generated content"


---

This page was last updated at 2026-08-11T17:19:01.226Z.

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/angular/v5/components/MessageBouncePromptComponent/](https://getstream.io/chat/docs/sdk/angular/v5/components/MessageBouncePromptComponent/).