# Failed Messages

The Chat component provides built-in functionality for handling and displaying failed message delivery, allowing users to retry sending messages that didn't go through successfully.

When a message fails to send, the Chat displays a visual indicator along with a retry action that lets users resend the message. This feature enhances the user experience by providing clear feedback about delivery status and offering a simple way to recover from failures.

## Failed Message States

The Chat component identifies failed messages using the [`isFailed`](https://www.telerik.com/kendo-react-ui/components/conversationalui/api/message#isfailed) property on the [`Message`](https://www.telerik.com/kendo-react-ui/components/conversationalui/api/message) object. When set to `true`, the message will display with a failed state indicator, making it clear to users that delivery was unsuccessful.

Failed messages can occur due to various reasons such as network connectivity issues, server errors, or validation failures.

## Resending Failed Messages

When a message is marked as failed, the Chat automatically displays a resend action button. Users can click this button to retry sending the message.

The [`onResendMessage`](https://www.telerik.com/kendo-react-ui/components/conversationalui/api/chatprops#onresendmessage) event is triggered when a user attempts to resend a failed message, allowing you to implement the retry logic, such as re-attempting the API call or re-validating the message content.

[Demo Source](https://demos.telerik.com/kendo-react-ui/conversational-ui/chat/messages/failed-message/source.txt)

## Suggested Links

* [Message Appearance](https://www.telerik.com/kendo-react-ui/components/conversationalui/chat/messages/appearance)
* [Message Tools](https://www.telerik.com/kendo-react-ui/components/conversationalui/chat/messages/tools)
* [Message Persistence](https://www.telerik.com/kendo-react-ui/components/conversationalui/chat/messages/persistence)
* [Events Handling](https://www.telerik.com/kendo-react-ui/components/conversationalui/chat/events)
* [Chat API Reference](https://www.telerik.com/kendo-react-ui/components/conversationalui/api)
