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

setEditingState

Set editing state for a message.

Type
(message) => void

removeMessage

Remove a message from local state only (does not call channel.deleteMessage).

Type
(message) => void

retrySendMessage

Retry sending a failed message.

Type
(message) => void

message

Message object.

Type
Message type

setIsBounceDialogOpen

State setter to open/close the bounce modal.

Type
(boolean) => void