Page MenuHomePhabricator

D8271.id28393.diff
No OneTemporary

D8271.id28393.diff

diff --git a/native/navigation/overlay-navigator.react.js b/native/navigation/overlay-navigator.react.js
--- a/native/navigation/overlay-navigator.react.js
+++ b/native/navigation/overlay-navigator.react.js
@@ -28,6 +28,7 @@
import type { OverlayRouterExtraNavigationHelpers } from './overlay-router.js';
import { scrollBlockingModals, TabNavigatorRouteName } from './route-names.js';
import { isMessageTooltipKey } from '../chat/utils.js';
+import { InputStateContext } from '../input/input-state.js';
export type OverlayNavigationHelpers<ParamList: ParamListBase = ParamListBase> =
{
@@ -155,8 +156,17 @@
}
return status;
};
- const [scrollBlockingModalStatus, setScrollBlockingModalStatus] =
+ const [rawScrollBlockingModalStatus, setScrollBlockingModalStatus] =
React.useState(() => getScrollBlockingModalStatus(scenes));
+
+ const inputState = React.useContext(InputStateContext);
+ const scrollBlockingModalStatus = React.useMemo(() => {
+ if (inputState?.editState.editedMessage !== null) {
+ return 'closed';
+ }
+ return rawScrollBlockingModalStatus;
+ }, [inputState?.editState, rawScrollBlockingModalStatus]);
+
const sceneDataForNewScene = scene => ({
...scene,
context: {

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 5, 2:28 AM (14 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2615632
Default Alt Text
D8271.id28393.diff (1 KB)

Event Timeline