Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3744136
D7264.id24517.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
D7264.id24517.diff
View Options
diff --git a/lib/shared/avatar-utils.js b/lib/shared/avatar-utils.js
--- a/lib/shared/avatar-utils.js
+++ b/lib/shared/avatar-utils.js
@@ -101,9 +101,7 @@
return getAvatarForUser(memberInfos[0]);
}
-function useGetAvatarForThread(
- thread: RawThreadInfo | ThreadInfo,
-): ClientAvatar {
+function useAvatarForThread(thread: RawThreadInfo | ThreadInfo): ClientAvatar {
const containingThreadID = thread.containingThreadID;
const containingThreadInfo = useSelector(state =>
containingThreadID ? threadInfoSelector(state)[containingThreadID] : null,
@@ -161,6 +159,6 @@
export {
getAvatarForUser,
getUserAvatarForThread,
- useGetAvatarForThread,
+ useAvatarForThread,
useENSResolvedAvatar,
};
diff --git a/native/components/thread-avatar.react.js b/native/components/thread-avatar.react.js
--- a/native/components/thread-avatar.react.js
+++ b/native/components/thread-avatar.react.js
@@ -3,7 +3,7 @@
import * as React from 'react';
import {
- useGetAvatarForThread,
+ useAvatarForThread,
useENSResolvedAvatar,
} from 'lib/shared/avatar-utils.js';
import { getSingleOtherUser } from 'lib/shared/thread-utils.js';
@@ -24,7 +24,7 @@
function ThreadAvatar(props: Props): React.Node {
const { threadInfo, size } = props;
- const avatarInfo = useGetAvatarForThread(threadInfo);
+ const avatarInfo = useAvatarForThread(threadInfo);
const viewerID = useSelector(
state => state.currentUserInfo && state.currentUserInfo.id,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 10, 2:59 PM (11 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2851589
Default Alt Text
D7264.id24517.diff (1 KB)
Attached To
Mode
D7264: [lib/native] change useGetAvatarForThread to useAvatarForThread
Attached
Detach File
Event Timeline
Log In to Comment