MM-52995: Fix opening DM/GM thread from thread footer (#23579)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
cdc73cd8e3
Коммит
36027ac1c4
@@ -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});
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user