diff --git a/native/chat/message-list-container.react.js b/native/chat/message-list-container.react.js --- a/native/chat/message-list-container.react.js +++ b/native/chat/message-list-container.react.js @@ -18,6 +18,7 @@ useExistingThreadInfoFinder, } from 'lib/shared/thread-utils.js'; import type { ThreadInfo } from 'lib/types/minimally-encoded-thread-permissions-types.js'; +import { threadTypeIsThick } from 'lib/types/thread-types-enum.js'; import type { AccountUserInfo, UserListItem } from 'lib/types/user-types.js'; import { pinnedMessageCountText } from 'lib/utils/message-pinning-utils.js'; @@ -160,10 +161,23 @@ let searchComponent = null; if (searching) { const { userInfoInputArray, genesisThreadInfo } = this.props; + const childThreadType = pendingThreadType( + userInfoInputArray.length, + true, + ); // It's technically possible for the client to be missing the Genesis // ThreadInfo when it first opens up (before the server delivers it) let parentThreadHeader; - if (genesisThreadInfo) { + if (threadTypeIsThick(childThreadType)) { + parentThreadHeader = ( + + ); + } else if (genesisThreadInfo) { parentThreadHeader = ( { + if (!parentThreadInfo) { + return; + } navigateToThread({ threadInfo: parentThreadInfo }); }, [parentThreadInfo, navigateToThread]); + let parentThreadButton; + if (parentThreadInfo) { + parentThreadButton = ( + <> + within + + + ); + } + return ( - within - + {parentThreadButton} );