Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3525999
D7775.id26413.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.id26413.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 { 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
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 7:08 PM (9 h, 33 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2700856
Default Alt Text
D7775.id26413.diff (1 KB)
Attached To
Mode
D7775: [native] Use MessageSearchContent
Attached
Detach File
Event Timeline
Log In to Comment