From 50cc0b05be19e6e6cad8b01dc59a7cb5417115ff Mon Sep 17 00:00:00 2001 From: Anurag Shivarathri Date: Fri, 6 Nov 2020 00:18:16 +0530 Subject: [PATCH] Group mentions are not highlighted until they are posted (#4943) * Group mentions are not highlighted until they are posted * Disable highlight when post is pending * Reverted unit test Co-authored-by: anurag shivarathri --- app/components/post_body/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/components/post_body/index.js b/app/components/post_body/index.js index 28ca0f0f1..ab8371972 100644 --- a/app/components/post_body/index.js +++ b/app/components/post_body/index.js @@ -88,6 +88,11 @@ export function makeMapStateToProps() { postProps.username = owner?.username || ''; } + // Disable group highlight when post is pending + if (post.id === post.pending_post_id) { + postProps.disable_group_highlight = true; + } + return { metadata: post.metadata, postProps,