Disable selecting existing group members in add members modal

This commit is contained in:
trevor-signal
2023-10-06 11:45:43 -04:00
committed by GitHub
parent 8af39e630a
commit 363142569b
8 changed files with 11 additions and 19 deletions
@@ -40,7 +40,7 @@ type PropsType = ComponentProps<typeof AddGroupMembersModal>;
const createProps = (
overrideProps: Partial<PropsType> = {},
candidateContacts: Array<ConversationType> = []
candidateContacts: Array<ConversationType> = allCandidateContacts
): PropsType => ({
clearRequestError: action('clearRequestError'),
conversationIdsAlreadyInGroup: new Set(),
@@ -329,6 +329,7 @@ export function ChooseGroupMembersModal({
onClick={handleContactClick}
isChecked={row.isChecked}
badge={undefined}
disabledReason={row.disabledReason}
/>
);
break;