Page MenuHomePhabricator

D6442.diff
No OneTemporary

D6442.diff

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

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)

Event Timeline