Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33032120
D8543.1768403960.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D8543.1768403960.diff
View Options
diff --git a/native/chat/chat.react.js b/native/chat/chat.react.js
--- a/native/chat/chat.react.js
+++ b/native/chat/chat.react.js
@@ -37,6 +37,7 @@
import ComposeThreadButton from './compose-thread-button.react.js';
import FullScreenThreadMediaGallery from './fullscreen-thread-media-gallery.react.js';
import HomeChatThreadList from './home-chat-thread-list.react.js';
+import { MessageEditingContext } from './message-editing-context.react.js';
import MessageListContainer from './message-list-container.react.js';
import MessageListHeaderTitle from './message-list-header-title.react.js';
import MessageResultsScreen from './message-results-screen.react.js';
@@ -341,6 +342,10 @@
[props.navigation],
);
+ const messageEditingContext = React.useContext(MessageEditingContext);
+ const editState = messageEditingContext?.editState;
+ const editMode = !!(editState && editState.editedMessage !== null);
+
const { width: screenWidth } = useWindowDimensions();
const screenOptions = React.useMemo(
() => ({
@@ -352,9 +357,9 @@
borderBottomWidth: 1,
},
gestureEnabled: true,
- gestureResponseDistance: screenWidth,
+ gestureResponseDistance: editMode ? 0 : screenWidth,
}),
- [colors.tabBarBackground, headerLeftButton, screenWidth],
+ [colors.tabBarBackground, headerLeftButton, screenWidth, editMode],
);
const chatThreadListOptions = React.useCallback(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 14, 3:19 PM (7 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5932666
Default Alt Text
D8543.1768403960.diff (1 KB)
Attached To
Mode
D8543: [native] Disable stack gestures while editing messages
Attached
Detach File
Event Timeline
Log In to Comment