Assume everyone is GV2-capable
This commit is contained in:
parent
0a52318be6
commit
effe5aae6f
22 changed files with 16 additions and 405 deletions
|
@ -535,28 +535,6 @@ export const getFilteredCandidateContactsForNewGroup = createSelector(
|
|||
filterAndSortConversationsByTitle
|
||||
);
|
||||
|
||||
export const getCantAddContactForModal = createSelector(
|
||||
getConversationLookup,
|
||||
getComposerState,
|
||||
(conversationLookup, composerState): undefined | ConversationType => {
|
||||
if (composerState?.step !== ComposerStep.ChooseGroupMembers) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const conversationId = composerState.cantAddContactIdForModal;
|
||||
if (!conversationId) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const result = getOwn(conversationLookup, conversationId);
|
||||
assert(
|
||||
result,
|
||||
'getCantAddContactForModal: failed to look up conversation by ID; returning undefined'
|
||||
);
|
||||
return result;
|
||||
}
|
||||
);
|
||||
|
||||
const getGroupCreationComposerState = createSelector(
|
||||
getComposerState,
|
||||
(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue