Display new non connected non closed connections that are unread as the unread GroupMembers indicator if you own the post, and the number will be based on the connected groupconnections as the groupMembers Size in the post-menu
@@ -237,13 +237,18 @@ function genComponentConf() {
const hasContent = this.hasVisibleDetails(content);
const hasSeeksBranch = this.hasVisibleDetails(seeks);
- const groupMembers = get(post, "groupMembers");
- const groupChatConnections = connectionSelectors.getGroupChatConnectionsByNeedUri(
+ const hasGroupFacet = needUtils.hasGroupFacet(post);
+
+ const groupMembers = hasGroupFacet && get(post, "groupMembers");
+ const groupChatConnections =
+ isOwned &&
+ hasGroupFacet &&
+ connectionSelectors.getGroupChatConnectionsByNeedUri(
state,
this.postUri
);
- const heldPosts = get(post, "holds");
+ const heldPosts = isPersona && get(post, "holds");
const suggestions = connectionSelectors.getSuggestedConnectionsByNeedUri(
state,
@@ -266,7 +271,7 @@ function genComponentConf() {
isOwned,
hasHeldPosts: isPersona && heldPosts && heldPosts.size > 0,
heldPostsArray: isPersona && heldPosts && heldPosts.toArray(),
- hasGroupFacet: needUtils.hasGroupFacet(post),
+ hasGroupFacet,
hasChatFacet: needUtils.hasChatFacet(post),
hasGroupMembers: groupMembers && groupMembers.size > 0,
hasGroupChatConnections:
