Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3372221
D7775.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
D7775.diff
View Options
diff --git a/native/search/message-search.react.js b/native/search/message-search.react.js
--- a/native/search/message-search.react.js
+++ b/native/search/message-search.react.js
@@ -7,6 +7,7 @@
import type { MessageInfo } from 'lib/types/message-types.js';
import type { ThreadInfo } from 'lib/types/thread-types.js';
+import MessageSearchContent from './search-content.react.js';
import SearchFooter from './search-footer.react.js';
import { MessageSearchContext } from './search-provider.react.js';
import type { ChatNavigationProp } from '../chat/chat.react.js';
@@ -33,13 +34,10 @@
});
}, [props.navigation, clearQuery]);
- // eslint-disable-next-line no-unused-vars
const [lastID, setLastID] = React.useState();
- // eslint-disable-next-line no-unused-vars
const [searchResults, setSearchResults] = React.useState([]);
- // eslint-disable-next-line no-unused-vars
const appendSearchResults = React.useCallback(
(newMessages: $ReadOnlyArray<MessageInfo>) => {
setSearchResults(oldMessages => [...oldMessages, ...newMessages]);
@@ -62,7 +60,17 @@
);
}
- return null;
+ return (
+ <MessageSearchContent
+ navigation={props.navigation}
+ route={props.route}
+ query={query}
+ lastSearchResultsID={lastID}
+ setLastSearchResultsID={setLastID}
+ searchResults={searchResults}
+ appendSearchResults={appendSearchResults}
+ />
+ );
}
const unboundStyles = {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 6:06 AM (20 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2588989
Default Alt Text
D7775.diff (1 KB)
Attached To
Mode
D7775: [native] Use MessageSearchContent
Attached
Detach File
Event Timeline
Log In to Comment