summaryrefslogtreecommitdiffstats
path: root/webapp/components/post.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <asaad@spinpunch.com>2016-04-01 23:17:56 +0500
committerAsaad Mahmood <asaad@spinpunch.com>2016-04-01 23:17:56 +0500
commit371dbfff22c523c046df537dc63764cfd2c70bd6 (patch)
tree24fcd6a75d3870e7f2f192a1b28282dd84c5b5c9 /webapp/components/post.jsx
parentf4d24b57fee5874fe4b2df929ec974392335316e (diff)
downloadchat-371dbfff22c523c046df537dc63764cfd2c70bd6.tar.gz
chat-371dbfff22c523c046df537dc63764cfd2c70bd6.tar.bz2
chat-371dbfff22c523c046df537dc63764cfd2c70bd6.zip
Adding modal changes back again
Diffstat (limited to 'webapp/components/post.jsx')
-rw-r--r--webapp/components/post.jsx12
1 files changed, 10 insertions, 2 deletions
diff --git a/webapp/components/post.jsx b/webapp/components/post.jsx
index 30c47ee22..bbf8d9bf6 100644
--- a/webapp/components/post.jsx
+++ b/webapp/components/post.jsx
@@ -129,6 +129,7 @@ export default class Post extends React.Component {
const post = this.props.post;
const parentPost = this.props.parentPost;
const posts = this.props.posts;
+ const mattermostLogo = Constants.MATTERMOST_ICON_SVG;
if (!post.props) {
post.props = {};
@@ -191,8 +192,6 @@ export default class Post extends React.Component {
} else {
src = Constants.DEFAULT_WEBHOOK_LOGO;
}
- } else if (Utils.isSystemMessage(post)) {
- src = Constants.SYSTEM_MESSAGE_PROFILE_IMAGE;
}
profilePic = (
@@ -202,6 +201,15 @@ export default class Post extends React.Component {
width='36'
/>
);
+
+ if (Utils.isSystemMessage(post)) {
+ profilePic = (
+ <span
+ className='icon'
+ dangerouslySetInnerHTML={{__html: mattermostLogo}}
+ />
+ );
+ }
}
return (