Skip to content

Commit ed46f4f

Browse files
fix(mobile): clear only the discard latch when a share discard fails
Co-Authored-By: Claude Code <noreply@anthropic.com>
1 parent 227ff4f commit ed46f4f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/mobile/src/Stack.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,11 @@ function RootStackLayout(props: {
432432
// Drop the latch so the share is presented again instead of sitting
433433
// in the inbox unreachable until the next foreground refresh.
434434
if (sharePresentationRef.current.discardedShareId === shareId) {
435-
sharePresentationRef.current = EMPTY_INCOMING_SHARE_PRESENTATION_STATE;
435+
// Only the latch: a newer share may already be presented.
436+
sharePresentationRef.current = {
437+
...sharePresentationRef.current,
438+
discardedShareId: null,
439+
};
436440
setSharePresentationRetry((attempt) => attempt + 1);
437441
}
438442
});

0 commit comments

Comments
 (0)