MM-52995: Fix opening DM/GM thread from thread footer (#23579)

Этот коммит содержится в:
Caleb Roseland
2023-06-07 12:54:29 -05:00
коммит произвёл GitHub
родитель cdc73cd8e3
Коммит 36027ac1c4
2 изменённых файлов: 72 добавлений и 2 удалений

Просмотреть файл

@@ -390,12 +390,12 @@ const PostComponent = (props: Props): JSX.Element => {
}, [post, props.actions, props.actions.selectPostFromRightHandSideSearch]);
const handleThreadClick = useCallback((e: React.MouseEvent) => {
if (props.currentTeam.id === props.team?.id) {
if (props.currentTeam.id === teamId) {
handleCommentClick(e);
} else {
handleJumpClick(e);
}
}, [handleCommentClick, handleJumpClick]);
}, [handleCommentClick, handleJumpClick, props.currentTeam.id, teamId]);
const postClass = classNames('post__body', {'post--edited': PostUtils.isEdited(post), 'search-item-snippet': isSearchResultItem});