|
1 | | -import React, {use} from 'react'; |
| 1 | +import React from 'react'; |
2 | 2 | import type {TextInput} from 'react-native'; |
3 | 3 | import {View} from 'react-native'; |
4 | 4 | import type {OnyxEntry} from 'react-native-onyx'; |
5 | 5 | import {AttachmentContext} from '@components/AttachmentContext'; |
6 | 6 | import Button from '@components/Button'; |
7 | 7 | import MentionReportContext from '@components/HTMLEngineProvider/HTMLRenderers/MentionReportRenderer/MentionReportContext'; |
8 | 8 | import {useBlockedFromConcierge} from '@components/OnyxListItemProvider'; |
9 | | -import {SearchStateContext} from '@components/Search/SearchContext'; |
10 | 9 | import {ShowContextMenuActionsContext, ShowContextMenuStateContext} from '@components/ShowContextMenuContext'; |
11 | 10 | import Text from '@components/Text'; |
12 | 11 | import useLocalize from '@hooks/useLocalize'; |
@@ -85,12 +84,7 @@ function ChatMessageContent({ |
85 | 84 |
|
86 | 85 | const mentionReportContextValue = {currentReportID: report?.reportID, exactlyMatch: true}; |
87 | 86 |
|
88 | | - let currentSearchHash: number | undefined; |
89 | | - if (isOnSearch) { |
90 | | - const {currentSearchHash: searchContextCurrentSearchHash} = use(SearchStateContext); |
91 | | - currentSearchHash = searchContextCurrentSearchHash; |
92 | | - } |
93 | | - const attachmentContextValue = isOnSearch ? {type: CONST.ATTACHMENT_TYPE.SEARCH, currentSearchHash} : {reportID, type: CONST.ATTACHMENT_TYPE.REPORT}; |
| 87 | + const attachmentContextValue = isOnSearch ? {type: CONST.ATTACHMENT_TYPE.SEARCH} : {reportID, type: CONST.ATTACHMENT_TYPE.REPORT}; |
94 | 88 |
|
95 | 89 | const {hasBeenFlagged} = getModerationFlagState(action); |
96 | 90 |
|
|
0 commit comments