There was an error while loading. Please reload this page.
1 parent 227ff4f commit ed46f4fCopy full SHA for ed46f4f
1 file changed
apps/mobile/src/Stack.tsx
@@ -432,7 +432,11 @@ function RootStackLayout(props: {
432
// Drop the latch so the share is presented again instead of sitting
433
// in the inbox unreachable until the next foreground refresh.
434
if (sharePresentationRef.current.discardedShareId === shareId) {
435
- sharePresentationRef.current = EMPTY_INCOMING_SHARE_PRESENTATION_STATE;
+ // Only the latch: a newer share may already be presented.
436
+ sharePresentationRef.current = {
437
+ ...sharePresentationRef.current,
438
+ discardedShareId: null,
439
+ };
440
setSharePresentationRetry((attempt) => attempt + 1);
441
}
442
});
0 commit comments