Files
simplex-chat/apps/multiplatform/common/src
Narasimha-scandGitHub 172b11b511 android, desktop: don't allow swipe-to-reply to a marked-deleted message (#7214)
The swipe handler is created with rememberDismissState, whose lambda is frozen
at first composition and captures a stale cItem. When a message is marked
deleted while on screen, that lambda still sees the pre-deletion item, so an
in-lambda itemDeleted check is bypassed and the quote is set, producing
SEInvalidQuote on send. Disable the swipe modifier (recomputed live each
recomposition) when itemDeleted != null so the gesture is removed entirely.
2026-07-22 13:12:23 +01:00
..