From 16fb52b40b8c571a667a9bf7c331bea21dd8b556 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 8 Jun 2026 15:33:06 +0300 Subject: [PATCH] hoist remove prompt out of conditional confirming the prompt optimistically drops the row, which would unmount the prompt mid-close and race the dismiss animation on native. only the button needs gating behind showRemoveButton. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../Messages/ConversationSettings/Member.tsx | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/screens/Messages/ConversationSettings/Member.tsx b/src/screens/Messages/ConversationSettings/Member.tsx index 6897dafc58..20cc0fee52 100644 --- a/src/screens/Messages/ConversationSettings/Member.tsx +++ b/src/screens/Messages/ConversationSettings/Member.tsx @@ -153,22 +153,15 @@ export function Member({ {showRemoveButton ? ( - <> - - removeMembers({members: [profile.did]})} - /> - + ) : isSelf || isFollowing || isBlockedOrBlocking(profile) ? null : ( + {/* Mounted outside the showRemoveButton conditional: confirming the + prompt optimistically drops this row, so gating the prompt on the + button would unmount it mid-close and race the dismiss animation. */} + removeMembers({members: [profile.did]})} + /> ) }