Stories: In send dialogs, don't show groups you're no longer part of
This commit is contained in:
parent
ef20c31c64
commit
c26f7217ed
1 changed files with 6 additions and 3 deletions
|
@ -543,7 +543,8 @@ export const getNonGroupStories = createSelector(
|
|||
conversationIdsWithStories: Set<string>
|
||||
): Array<ConversationType> => {
|
||||
return groups.filter(
|
||||
group => !isGroupInStoryMode(group, conversationIdsWithStories)
|
||||
group =>
|
||||
!isGroupInStoryMode(group, conversationIdsWithStories) && !group.left
|
||||
);
|
||||
}
|
||||
);
|
||||
|
@ -578,8 +579,10 @@ export const getGroupStories = createSelector(
|
|||
conversationLookup: ConversationLookupType,
|
||||
conversationIdsWithStories: Set<string>
|
||||
): Array<ConversationType> => {
|
||||
return Object.values(conversationLookup).filter(conversation =>
|
||||
isGroupInStoryMode(conversation, conversationIdsWithStories)
|
||||
return Object.values(conversationLookup).filter(
|
||||
conversation =>
|
||||
isGroupInStoryMode(conversation, conversationIdsWithStories) &&
|
||||
!conversation.left
|
||||
);
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue