Skip to content

Commit

Permalink
MM-11982: Fix slack attachments permanlinks click (mattermost#1709)
Browse files Browse the repository at this point in the history
  • Loading branch information
jespino committed Sep 17, 2018
1 parent c427471 commit efa46ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/post_view/post_attachment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import * as PostActions from 'actions/post_actions.jsx';
import {postListScrollChange} from 'actions/global_actions';

import {isUrlSafe} from 'utils/url.jsx';
import * as Utils from 'utils/utils';

import Markdown from 'components/markdown';

Expand Down Expand Up @@ -322,6 +323,7 @@ export default class PostAttachment extends React.PureComponent {
<div>
<div
className={thumb ? 'attachment__body' : 'attachment__body attachment__body--no_thumb'}
onClick={Utils.handleFormattedTextClick}
>
{attachmentText}
{image}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ exports[`components/post_view/PostAttachment should call PostActions.doPostActio
<div>
<div
className="attachment__body"
onClick={[Function]}
>
<Connect(ShowMore)
checkOverflow={0}
Expand Down Expand Up @@ -164,6 +165,7 @@ exports[`components/post_view/PostAttachment should match snapshot 1`] = `
<div>
<div
className="attachment__body"
onClick={[Function]}
>
<Connect(ShowMore)
checkOverflow={0}
Expand Down

0 comments on commit efa46ce

Please sign in to comment.