You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expand message long-press hit area to entire cell (#6405)
* DS-031: Expand message long-press hit area to entire cell
Move the click modifier from the inner content Row (wrap-content) to the outer Box (full-width) so long-press can be triggered anywhere across the row, not only on the avatar+bubble area. Aligns the long-press surface with the swipe surface and matches iOS behaviour.
Adds a ripple indication so the gesture target is visible to the user.
* Extract message click predicates into named locals
Replace inline boolean expressions inside the click and long-click lambdas with `canOpenThread` and `canOpenActions`, so the gesture handlers read as intent rather than condition bookkeeping.
* Collapse message item Box+Row wrapper into a single Row
Replace the outer `Box(fillMaxWidth, contentAlignment)` + inner `Row(wrapContentWidth)` pair with a single `Row(fillMaxWidth, horizontalArrangement)`. The Box was only providing edge alignment, which a Row achieves directly via `horizontalArrangement` mapped from `MessageAlignment`.
Drops the now-redundant `Stream_MessageItem` test tag (zero references outside this file) and keeps `Stream_MessageCell` on the merged Row, where it accurately labels the message cell that the gesture surface lives on.
* Enable message clicks only when threads or actions are available
Copy file name to clipboardExpand all lines: stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/messages/list/MessageContainer.kt
0 commit comments