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 ( <> @@ -134,7 +140,7 @@

{ancestorPath}

-
{threadInfo.uiName}
+
{uiName}