mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-12 13:59:03 +00:00
4c33400937
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.