diff --git a/web/chat/composed-message.react.js b/web/chat/composed-message.react.js --- a/web/chat/composed-message.react.js +++ b/web/chat/composed-message.react.js @@ -62,7 +62,6 @@ ...BaseProps, +onMouseLeave: ?() => mixed, +onMouseEnter: (event: SyntheticEvent) => mixed, - +containsInlineEngagement: boolean, +stringForUser: ?string, +onClickUser: () => mixed, }; @@ -142,7 +141,7 @@ let inlineEngagement = null; const label = getMessageLabel(hasBeenEdited, threadInfo.id); if ( - (this.props.containsInlineEngagement && item.threadCreatedFromMessage) || + item.threadCreatedFromMessage || Object.keys(item.reactions).length > 0 || label ) { @@ -231,7 +230,6 @@ const availablePositions = isViewer ? availableTooltipPositionsForViewerMessage : availableTooltipPositionsForNonViewerMessage; - const containsInlineEngagement = !!item.threadCreatedFromMessage; const { onMouseLeave, onMouseEnter } = useMessageTooltip({ item, @@ -249,7 +247,6 @@ {...props} onMouseLeave={onMouseLeave} onMouseEnter={onMouseEnter} - containsInlineEngagement={containsInlineEngagement} stringForUser={stringForUser} onClickUser={pushUserProfileModal} />