Skip to content

Commit

Permalink
add attachments to rhs search results (mattermost#7290)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccbrown authored and grundleborg committed Aug 25, 2017
1 parent 1a2a024 commit d13f192
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion webapp/components/search_results_item.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import ProfilePicture from './profile_picture.jsx';
import CommentIcon from 'components/common/comment_icon.jsx';
import DotMenu from 'components/dot_menu';
import PostFlagIcon from 'components/post_view/post_flag_icon.jsx';
import PostBodyAdditionalContent from 'components/post_view/post_body_additional_content.jsx';

import TeamStore from 'stores/team_store.jsx';

Expand Down Expand Up @@ -253,7 +254,7 @@ export default class SearchResultsItem extends React.Component {
</div>
);

message = (
const messageWrapper = (
<PostMessageContainer
post={post}
options={{
Expand All @@ -262,6 +263,13 @@ export default class SearchResultsItem extends React.Component {
}}
/>
);

message = (
<PostBodyAdditionalContent
post={post}
message={messageWrapper}
/>
);
}

let pinnedBadge;
Expand Down

0 comments on commit d13f192

Please sign in to comment.