From 270ac113654d17cabf4a92d48de4ca4a9de65c46 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Thu, 9 Mar 2017 14:41:23 -0500 Subject: Fix posts from your own webhook not showing as unread until refresh (#5703) --- webapp/utils/post_utils.jsx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'webapp/utils') diff --git a/webapp/utils/post_utils.jsx b/webapp/utils/post_utils.jsx index 0b908c55b..1f2021e4a 100644 --- a/webapp/utils/post_utils.jsx +++ b/webapp/utils/post_utils.jsx @@ -12,6 +12,10 @@ export function isSystemMessage(post) { return post.type && (post.type.lastIndexOf(Constants.SYSTEM_MESSAGE_PREFIX) === 0); } +export function isFromWebhook(post) { + return post.props && post.props.from_webhook === 'true'; +} + export function isPostOwner(post) { return UserStore.getCurrentId() === post.user_id; } -- cgit v1.2.3-1-g7c22