Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32556943
D14144.1767238908.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D14144.1767238908.diff
View Options
diff --git a/native/chat/chat-thread-list.react.js b/native/chat/chat-thread-list.react.js
--- a/native/chat/chat-thread-list.react.js
+++ b/native/chat/chat-thread-list.react.js
@@ -202,13 +202,13 @@
const onPressItem = React.useCallback(
(threadInfo: ThreadInfo, pendingPersonalThreadUserInfo?: UserInfo) => {
- onChangeSearchText('');
+ setSearchText('');
if (searchInputRef.current) {
searchInputRef.current.blur();
}
navigateToThread({ threadInfo, pendingPersonalThreadUserInfo });
},
- [navigateToThread, onChangeSearchText],
+ [navigateToThread],
);
const onPressSeeMoreSidebars = React.useCallback(
@@ -455,18 +455,6 @@
}
}, [navigation, route.name]);
- React.useEffect(() => {
- const clearNavigationBlurListener = navigation.addListener('blur', () => {
- setNumItemsToDisplay(pageSize);
- });
-
- return () => {
- // `.addListener` returns function that can be called to unsubscribe.
- // https://reactnavigation.org/docs/navigation-events/#navigationaddlistener
- clearNavigationBlurListener();
- };
- }, [navigation]);
-
React.useEffect(() => {
const chatNavigation = navigation.getParent<
ScreenParamList,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 1, 3:41 AM (3 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5874950
Default Alt Text
D14144.1767238908.diff (1 KB)
Attached To
Mode
D14144: [native] Stop resetting ChatThreadList on navigation
Attached
Detach File
Event Timeline
Log In to Comment