diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2016-02-03 12:12:10 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2016-02-04 11:38:58 -0500 |
commit | 70c3715b963cd8f2a710f8909f23696f9de7fcc7 (patch) | |
tree | 55077777c2bbb4e5d0f6f41d9e2d12e3668d02c4 /web/react/components | |
parent | 994358c31a93296a225f7d34942bbedfeac025c4 (diff) | |
download | chat-70c3715b963cd8f2a710f8909f23696f9de7fcc7.tar.gz chat-70c3715b963cd8f2a710f8909f23696f9de7fcc7.tar.bz2 chat-70c3715b963cd8f2a710f8909f23696f9de7fcc7.zip |
Changed how posts are marked ephemeral
Diffstat (limited to 'web/react/components')
-rw-r--r-- | web/react/components/post_info.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/post_info.jsx b/web/react/components/post_info.jsx index 02150bd9d..b1bc8ca14 100644 --- a/web/react/components/post_info.jsx +++ b/web/react/components/post_info.jsx @@ -30,7 +30,7 @@ export default class PostInfo extends React.Component { var isOwner = UserStore.getCurrentId() === post.user_id; var isAdmin = Utils.isAdmin(UserStore.getCurrentUser().roles); - if (post.state === Constants.POST_FAILED || post.state === Constants.POST_LOADING || post.ephemeral) { + if (post.state === Constants.POST_FAILED || post.state === Constants.POST_LOADING || Utils.isPostEphemeral(post)) { return ''; } @@ -171,7 +171,7 @@ export default class PostInfo extends React.Component { EventHelpers.emitRemovePost(this.props.post); } createRemovePostButton(post) { - if (!post.ephemeral) { + if (!Utils.isPostEphemeral(post)) { return null; } @@ -198,7 +198,7 @@ export default class PostInfo extends React.Component { commentCountText = ''; } - if (post.state !== Constants.POST_FAILED && post.state !== Constants.POST_LOADING && !post.ephemeral) { + if (post.state !== Constants.POST_FAILED && post.state !== Constants.POST_LOADING && !Utils.isPostEphemeral(post)) { comments = ( <a href='#' |