MessageBounce
Handles bounce actions on tap or long press of a bounced message in MessageList.
Best Practices
- Provide clear feedback when a message is bounced.
- Use
retrySendMessageonly after validating message content. - Keep bounce handling UI lightweight to avoid list jank.
- Use
removeMessagefor local cleanup; server state requires explicit calls. - Avoid editing state changes unless the user explicitly chooses to edit.
Props
| Prop | Description | Type |
|---|---|---|
setEditingState | Set editing state for a message. | (message) => void |
removeMessage | Remove a message from local state only (does not call channel.deleteMessage). | (message) => void |
retrySendMessage | Retry sending a failed message. | (message) => void |
message | Message object. | Message type |
setIsBounceDialogOpen | State setter to open/close the bounce modal. | (boolean) => void |