diff --git a/web/chat/thread-top-bar.react.js b/web/chat/thread-top-bar.react.js
index ed780057a..d9fd2c05f 100644
--- a/web/chat/thread-top-bar.react.js
+++ b/web/chat/thread-top-bar.react.js
@@ -1,38 +1,44 @@
// @flow
import * as React from 'react';
+import { threadIsPending } from 'lib/shared/thread-utils';
import type { ThreadInfo } from 'lib/types/thread-types';
import ThreadAncestors from './chat-thread-ancestors.react';
import ThreadMenu from './thread-menu.react';
import css from './thread-top-bar.css';
type threadTopBarProps = {
+threadInfo: ThreadInfo,
};
function ThreadTopBar(props: threadTopBarProps): React.Node {
const { threadInfo } = props;
const threadBackgroundColorStyle = React.useMemo(
() => ({
background: `#${threadInfo.color}`,
}),
[threadInfo.color],
);
+ let threadMenu = null;
+ if (!threadIsPending(threadInfo.id)) {
+ threadMenu =
{threadInfo.uiName}