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 @@ -25,10 +25,16 @@ }; function ChatThreadListItem(props: Props): React.Node { const { item, setModal } = props; - const { threadInfo, lastUpdatedTimeIncludingSidebars } = item; - const threadID = item.threadInfo.id; + const { + threadInfo, + lastUpdatedTimeIncludingSidebars, + mostRecentNonLocalMessage, + mostRecentMessageInfo, + } = item; + const { id, currentUser } = threadInfo; + const ancestorThreads = useAncestorThreads(threadInfo); - const onClick = useOnClickThread(threadID); + const onClick = useOnClickThread(id); const timeZone = useSelector(state => state.timeZone); const lastActivity = shortAbsoluteDate( @@ -36,7 +42,7 @@ timeZone, ); - const active = useThreadIsActive(threadID); + const active = useThreadIsActive(id); const containerClassName = React.useMemo( () => classNames({ @@ -46,7 +52,7 @@ [active], ); - const { unread } = item.threadInfo.currentUser; + const { unread } = currentUser; const titleClassName = React.useMemo( () => classNames({ @@ -126,19 +132,19 @@

{ancestorPath}

-
{item.threadInfo.uiName}
+
{threadInfo.uiName}
{lastActivity}