summaryrefslogtreecommitdiffstats
path: root/web/react/components
diff options
context:
space:
mode:
authorFlorian Orben <florian.orben@gmail.com>2015-12-04 20:18:49 +0100
committerFlorian Orben <florian.orben@gmail.com>2015-12-09 22:29:54 +0100
commit99d79eee56a1b5a27f18fffd90545b4aef191bba (patch)
treeda57414d03887a1cdff3f8c51caa0bd74db7f0c1 /web/react/components
parent985dc06e5fb9d809e4be4e5fff2c3b1ca66c1ea9 (diff)
downloadchat-99d79eee56a1b5a27f18fffd90545b4aef191bba.tar.gz
chat-99d79eee56a1b5a27f18fffd90545b4aef191bba.tar.bz2
chat-99d79eee56a1b5a27f18fffd90545b4aef191bba.zip
add helper method to add ephemeral messages; also switch 'delete message' to this new method
Diffstat (limited to 'web/react/components')
-rw-r--r--web/react/components/post.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/post.jsx b/web/react/components/post.jsx
index 695d7daef..b7711ca29 100644
--- a/web/react/components/post.jsx
+++ b/web/react/components/post.jsx
@@ -179,7 +179,7 @@ export default class Post extends React.Component {
}
let profilePic = null;
- if (!this.props.hideProfilePic) {
+ if (!this.props.hideProfilePic && post.user_id !== '0') {
let src = '/api/v1/users/' + post.user_id + '/image?time=' + timestamp + '&' + utils.getSessionIndex();
if (post.props && post.props.from_webhook && global.window.mm_config.EnablePostIconOverride === 'true') {
if (post.props.override_icon_url) {