Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3498978
D6605.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
D6605.diff
View Options
diff --git a/web/chat/chat-thread-ancestors.react.js b/web/chat/chat-thread-ancestors.react.js
--- a/web/chat/chat-thread-ancestors.react.js
+++ b/web/chat/chat-thread-ancestors.react.js
@@ -7,6 +7,7 @@
import { colorIsDark } from 'lib/shared/thread-utils';
import { useKeyserverAdmin } from 'lib/shared/user-utils';
import type { ThreadInfo } from 'lib/types/thread-types';
+import { useResolvedThreadInfo } from 'lib/utils/entity-helpers';
import CommIcon from '../CommIcon.react';
import SWMansionIcon from '../SWMansionIcon.react';
@@ -41,6 +42,8 @@
const keyserverAdmin = useKeyserverAdmin(community);
const keyserverOwnerUsername = keyserverAdmin?.username;
+ const resolvedCommunity = useResolvedThreadInfo(community);
+
const keyserverInfo = React.useMemo(
() => (
<div className={css.ancestorKeyserver}>
@@ -52,11 +55,11 @@
style={threadColorStyle}
className={classNames(css.ancestorName, css.ancestorKeyserverName)}
>
- {community.uiName}
+ {resolvedCommunity.uiName}
</div>
</div>
),
- [community.uiName, keyserverOwnerUsername, threadColorStyle],
+ [resolvedCommunity.uiName, keyserverOwnerUsername, threadColorStyle],
);
const middlePath = React.useMemo(() => {
@@ -79,6 +82,7 @@
const threadHasNoAncestors = community === threadInfo;
+ const { uiName } = useResolvedThreadInfo(threadInfo);
const currentThread = React.useMemo(() => {
if (threadHasNoAncestors) {
return null;
@@ -91,11 +95,11 @@
size={12}
/>
<div style={threadColorStyle} className={css.ancestorName}>
- {threadInfo.uiName}
+ {uiName}
</div>
</>
);
- }, [threadHasNoAncestors, threadColorStyle, threadInfo.uiName]);
+ }, [threadHasNoAncestors, threadColorStyle, uiName]);
let seeFullStructure = null;
if (SHOW_SEE_FULL_STRUCTURE) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 10:03 PM (17 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2683504
Default Alt Text
D6605.diff (1 KB)
Attached To
Mode
D6605: [web] Fetch ENS names in ChatThreadAncestors
Attached
Detach File
Event Timeline
Log In to Comment