Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3387124
D7942.id26878.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7942.id26878.diff
View Options
diff --git a/native/chat/text-message-tooltip-modal.react.js b/native/chat/text-message-tooltip-modal.react.js
--- a/native/chat/text-message-tooltip-modal.react.js
+++ b/native/chat/text-message-tooltip-modal.react.js
@@ -6,6 +6,7 @@
import { createMessageReply } from 'lib/shared/message-utils.js';
+import { createNavigateToThreadAction } from './message-list-types.js';
import { useOnPressReport } from './message-report-utils.js';
import { useAnimatedNavigateToSidebar } from './sidebar-navigation.js';
import TextMessageTooltipButton from './text-message-tooltip-button.react.js';
@@ -34,6 +35,7 @@
props: TooltipMenuProps<'TextMessageTooltipModal'>,
): React.Node {
const { route, tooltipItem: TooltipItem } = props;
+ const { threadInfo } = props.route.params.item;
const overlayContext = React.useContext(OverlayContext);
const inputState = React.useContext(InputStateContext);
@@ -43,11 +45,16 @@
inputState,
'inputState should be set in TextMessageTooltipModal.onPressReply',
);
+ props.navigation.navigate<'MessageList'>(
+ createNavigateToThreadAction({
+ threadInfo: threadInfo,
+ }),
+ );
inputState.editInputMessage({
message: createMessageReply(text),
mode: 'prepend',
});
- }, [inputState, text]);
+ }, [inputState, props.navigation, threadInfo, text]);
const renderReplyIcon = React.useCallback(
style => <CommIcon name="reply" style={style} size={12} />,
[],
diff --git a/native/navigation/route-names.js b/native/navigation/route-names.js
--- a/native/navigation/route-names.js
+++ b/native/navigation/route-names.js
@@ -236,4 +236,5 @@
ComposeSubchannelRouteName,
FullScreenThreadMediaGalleryRouteName,
MessageResultsScreenRouteName,
+ MessageSearchRouteName,
];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 7:46 AM (20 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2600163
Default Alt Text
D7942.id26878.diff (1 KB)
Attached To
Mode
D7942: [native] Fix reply not working in search results
Attached
Detach File
Event Timeline
Log In to Comment