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 <anuragindianbraves@gmail.com>
This commit is contained in:
Anurag Shivarathri 2020-11-06 00:18:16 +05:30 committed by GitHub
parent 8d4b602ab8
commit 50cc0b05be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,