Page MenuHomePhabricator

D7775.diff
No OneTemporary

D7775.diff

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

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)

Event Timeline