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:
parent
8d4b602ab8
commit
50cc0b05be
1 changed files with 5 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue