Ensure that isConversationUnregistered is not called on groups

This commit is contained in:
Scott Nonnenberg 2023-08-09 13:19:32 -07:00 committed by Jamie Kyle
parent 063ef87e48
commit 13470a789c
3 changed files with 11 additions and 4 deletions

View file

@ -496,7 +496,7 @@ function canComposeConversation(conversation: ConversationType): boolean {
!isSignalConversation(conversation) &&
!conversation.isBlocked &&
!conversation.removalStage &&
!isConversationUnregistered(conversation) &&
(isGroupV2(conversation) || !isConversationUnregistered(conversation)) &&
hasDisplayInfo(conversation) &&
isTrusted(conversation)
);
@ -511,7 +511,8 @@ export const getAllComposableConversations = createSelector(
!conversation.isBlocked &&
!conversation.removalStage &&
!conversation.isGroupV1AndDisabled &&
!isConversationUnregistered(conversation) &&
(isGroupV2(conversation) ||
!isConversationUnregistered(conversation)) &&
// All conversation should have a title except in weird cases where
// they don't, in that case we don't want to show these for Forwarding.
conversation.titleNoDefault &&