summaryrefslogtreecommitdiffstats
path: root/webapp/components/post.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-04-01 11:58:04 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-04-01 11:58:04 -0400
commit3245ed253af8e1750a43a0d526f819ca7aed2864 (patch)
tree2dd1edec8bebac7bc43680e37513e8f5e9958ee2 /webapp/components/post.jsx
parent5e307532d8bd2cd79020dcace7c0c2347a830d34 (diff)
parentc51484332c2f8c53cd1931680f02f74e1cd1603c (diff)
downloadchat-3245ed253af8e1750a43a0d526f819ca7aed2864.tar.gz
chat-3245ed253af8e1750a43a0d526f819ca7aed2864.tar.bz2
chat-3245ed253af8e1750a43a0d526f819ca7aed2864.zip
Merge pull request #2608 from asaadmahmoodspin/ui-improvements
PLT-2027- Improvements to about dialog
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 (