Page MenuHomePhabricator

D7264.id24517.diff
No OneTemporary

D7264.id24517.diff

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

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)

Event Timeline