Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33309735
D6606.1768805446.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
D6606.1768805446.diff
View Options
diff --git a/web/chat/chat-thread-list-item.react.js b/web/chat/chat-thread-list-item.react.js
--- a/web/chat/chat-thread-list-item.react.js
+++ b/web/chat/chat-thread-list-item.react.js
@@ -6,6 +6,10 @@
import type { ChatThreadItem } from 'lib/selectors/chat-selectors';
import { useAncestorThreads } from 'lib/shared/ancestor-threads';
import { shortAbsoluteDate } from 'lib/utils/date-utils';
+import {
+ useResolvedThreadInfo,
+ useResolvedThreadInfos,
+} from 'lib/utils/entity-helpers';
import { useSelector } from '../redux/redux-utils';
import {
@@ -32,7 +36,8 @@
} = item;
const { id: threadID, currentUser } = threadInfo;
- const ancestorThreads = useAncestorThreads(threadInfo);
+ const unresolvedAncestorThreads = useAncestorThreads(threadInfo);
+ const ancestorThreads = useResolvedThreadInfos(unresolvedAncestorThreads);
const lastActivity = shortAbsoluteDate(lastUpdatedTimeIncludingSidebars);
@@ -122,6 +127,7 @@
);
});
+ const { uiName } = useResolvedThreadInfo(threadInfo);
return (
<>
<a className={containerClassName} onClick={selectItemIfNotActiveCreation}>
@@ -134,7 +140,7 @@
<div className={css.threadButton}>
<p className={breadCrumbsClassName}>{ancestorPath}</p>
<div className={css.threadRow}>
- <div className={titleClassName}>{threadInfo.uiName}</div>
+ <div className={titleClassName}>{uiName}</div>
</div>
<div className={css.threadRow}>
<MessagePreview
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 19, 6:50 AM (3 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5955019
Default Alt Text
D6606.1768805446.diff (1 KB)
Attached To
Mode
D6606: [web] Fetch ENS names in ChatThreadListItem
Attached
Detach File
Event Timeline
Log In to Comment