Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33030814
D7264.1768401855.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
D7264.1768401855.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
Wed, Jan 14, 2:44 PM (17 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5929413
Default Alt Text
D7264.1768401855.diff (1 KB)
Attached To
Mode
D7264: [lib/native] change useGetAvatarForThread to useAvatarForThread
Attached
Detach File
Event Timeline
Log In to Comment