Page MenuHomePhabricator

D7942.id26878.diff
No OneTemporary

D7942.id26878.diff

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

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)

Event Timeline