summaryrefslogtreecommitdiffstats
path: root/web/react/components/post_body.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-07-23 18:28:31 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-07-29 09:52:09 -0400
commitca2b73eac375d7037c50e96330f449de2f2381bc (patch)
tree7e10db51e5548179be4416e9ba83259afa654c35 /web/react/components/post_body.jsx
parente1257b781939bc8767b379e3e49a7f2ca7e52e7b (diff)
downloadchat-ca2b73eac375d7037c50e96330f449de2f2381bc.tar.gz
chat-ca2b73eac375d7037c50e96330f449de2f2381bc.tar.bz2
chat-ca2b73eac375d7037c50e96330f449de2f2381bc.zip
Fix ViewImageModals created by RHS posts so that their ids are distinct from those in the main window
Diffstat (limited to 'web/react/components/post_body.jsx')
-rw-r--r--web/react/components/post_body.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/post_body.jsx b/web/react/components/post_body.jsx
index d29784db9..860c96d84 100644
--- a/web/react/components/post_body.jsx
+++ b/web/react/components/post_body.jsx
@@ -70,10 +70,10 @@ module.exports = React.createClass({
<p key={post.id+"_message"} className={postClass}><span>{inner}</span></p>
{ filenames && filenames.length > 0 ?
<FileAttachmentList
- postId={post.id}
+ filenames={filenames}
+ modalId={"view_image_modal_" + post.id}
channelId={post.channel_id}
- userId={post.user_id}
- filenames={filenames} />
+ userId={post.user_id} />
: "" }
{ embed }
</div>