summaryrefslogtreecommitdiffstats
path: root/webapp/utils/utils.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/utils/utils.jsx')
-rw-r--r--webapp/utils/utils.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx
index e7f13c4a0..9827dfb34 100644
--- a/webapp/utils/utils.jsx
+++ b/webapp/utils/utils.jsx
@@ -12,6 +12,7 @@ import Constants from 'utils/constants.jsx';
var ActionTypes = Constants.ActionTypes;
import Client from 'client/web_client.jsx';
import * as UserAgent from 'utils/user_agent.jsx';
+import {Posts} from 'mattermost-redux/constants';
import {browserHistory} from 'react-router/es6';
import {FormattedMessage} from 'react-intl';
@@ -1194,7 +1195,7 @@ export function clearFileInput(elm) {
}
export function isPostEphemeral(post) {
- return post.type === Constants.PostTypes.EPHEMERAL || post.state === Constants.POST_DELETED;
+ return post.type === Constants.PostTypes.EPHEMERAL || post.state === Posts.POST_DELETED;
}
export function getRootId(post) {