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 retrySendMessage only after validating message content.
  • Keep bounce handling UI lightweight to avoid list jank.
  • Use removeMessage for local cleanup; server state requires explicit calls.
  • Avoid editing state changes unless the user explicitly chooses to edit.

Props

PropDescriptionType
setEditingStateSet editing state for a message.(message) => void
removeMessageRemove a message from local state only (does not call channel.deleteMessage).(message) => void
retrySendMessageRetry sending a failed message.(message) => void
messageMessage object.Message type
setIsBounceDialogOpenState setter to open/close the bounce modal.(boolean) => void