Ensure that isConversationUnregistered is not called on groups
This commit is contained in:
parent
063ef87e48
commit
13470a789c
3 changed files with 11 additions and 4 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue