summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-08-25 09:08:03 -0500
committerGeorge Goldberg <george@gberg.me>2017-08-25 15:08:03 +0100
commitd13f1929649e466b7991d00cc93f7e1601973a68 (patch)
tree531e5b43becd5255440ba5e02dd1c197de11e1b6 /webapp
parent1a2a02440c4e66d7f4869f3d24b4731c8df81fcf (diff)
downloadchat-d13f1929649e466b7991d00cc93f7e1601973a68.tar.gz
chat-d13f1929649e466b7991d00cc93f7e1601973a68.tar.bz2
chat-d13f1929649e466b7991d00cc93f7e1601973a68.zip
add attachments to rhs search results (#7290)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/search_results_item.jsx10
1 files changed, 9 insertions, 1 deletions
diff --git a/webapp/components/search_results_item.jsx b/webapp/components/search_results_item.jsx
index c120f3cde..ddbab76ff 100644
--- a/webapp/components/search_results_item.jsx
+++ b/webapp/components/search_results_item.jsx
@@ -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';
@@ -253,7 +254,7 @@ export default class SearchResultsItem extends React.Component {
</div>
);
- message = (
+ const messageWrapper = (
<PostMessageContainer
post={post}
options={{
@@ -262,6 +263,13 @@ export default class SearchResultsItem extends React.Component {
}}
/>
);
+
+ message = (
+ <PostBodyAdditionalContent
+ post={post}
+ message={messageWrapper}
+ />
+ );
}
let pinnedBadge;