Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3292338
D6442.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
D6442.diff
View Options
diff --git a/native/chat/settings/add-users-modal.react.js b/native/chat/settings/add-users-modal.react.js
--- a/native/chat/settings/add-users-modal.react.js
+++ b/native/chat/settings/add-users-modal.react.js
@@ -8,6 +8,7 @@
changeThreadSettingsActionTypes,
changeThreadSettings,
} from 'lib/actions/thread-actions';
+import { useENSNames } from 'lib/hooks/ens-cache';
import { createLoadingStatusSelector } from 'lib/selectors/loading-selectors';
import { threadInfoSelector } from 'lib/selectors/thread-selectors';
import {
@@ -234,10 +235,12 @@
}),
[onPressAdd],
);
+ const userSearchResultWithENSNames = useENSNames(userSearchResults);
+ const userInfoInputArrayWithENSNames = useENSNames(userInfoInputArray);
return (
<Modal>
<TagInput
- value={userInfoInputArray}
+ value={userInfoInputArrayWithENSNames}
onChange={onChangeTagInput}
text={usernameInputText}
onChangeText={onChangeTagInputText}
@@ -247,7 +250,10 @@
inputProps={inputProps}
ref={tagInputRef}
/>
- <UserList userInfos={userSearchResults} onSelect={onUserSelect} />
+ <UserList
+ userInfos={userSearchResultWithENSNames}
+ onSelect={onUserSelect}
+ />
<View style={styles.buttons}>
{cancelButton}
{addButton}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 4:30 PM (21 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2529961
Default Alt Text
D6442.diff (1 KB)
Attached To
Mode
D6442: [native] Show ENS names in AddUsersModal
Attached
Detach File
Event Timeline
Log In to Comment