Files
t3code/apps
Theo BrowneandClaude Opus 5 3e77096713 fix(mobile): never fall back to Delete when snooze is gated
ThreadSwipeable treated an absent secondaryAction as "use the v1 Delete
default", so v2 rows that gate Snooze off (unsupported server, or a thread
blocked on the user) silently exposed a destructive Delete the row never
advertised. secondaryAction now distinguishes undefined (v1 default) from
explicit null (single-action tray): the tray shrinks to one button, every
animation range derives from the actual tray width, and a full swipe can
only commit the primary action.

Snooze eligibility is also time-gated by the queued-turn-start grace
window, and was evaluated once at render with no clock dependency, so a
row could stay Snooze-less indefinitely after the window lapsed. Rows now
arm a one-shot timer at the exact expiry via
resolveThreadListV2SnoozeGateExpiryMs.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-07-24 14:07:41 -07:00
..