Page MenuHomePhabricator

D7775.id26413.diff
No OneTemporary

D7775.id26413.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 { MessageSearchContext } from './search-provider.react.js';
import Statement from './statement.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,19 @@
);
}
- return null;
+ return (
+ <View>
+ <MessageSearchContent
+ navigation={props.navigation}
+ route={props.route}
+ query={query}
+ lastSearchResultsID={lastID}
+ setLastSearchResultsID={setLastID}
+ searchResults={searchResults}
+ appendSearchResults={appendSearchResults}
+ />
+ </View>
+ );
}
const unboundStyles = {

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 7:08 PM (8 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2700856
Default Alt Text
D7775.id26413.diff (1 KB)

Event Timeline