|
|
|
|
@ -247,13 +247,19 @@ const ResendButton = ({ groupPk, pubkey }: { pubkey: PubkeyType; groupPk: GroupP
|
|
|
|
|
if (!shouldShowResendButton) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
const resendButtonDisabled =
|
|
|
|
|
memberStatus === 'INVITE_SENDING' ||
|
|
|
|
|
memberStatus === 'PROMOTION_SENDING' ||
|
|
|
|
|
memberStatus === 'REMOVED_MEMBER' ||
|
|
|
|
|
memberStatus === 'REMOVED_MEMBER_AND_MESSAGES' ||
|
|
|
|
|
memberStatus === 'REMOVED_UNKNOWN';
|
|
|
|
|
return (
|
|
|
|
|
<SessionButton
|
|
|
|
|
dataTestId={'resend-invite-button'}
|
|
|
|
|
buttonShape={SessionButtonShape.Square}
|
|
|
|
|
buttonType={SessionButtonType.Solid}
|
|
|
|
|
text={window.i18n('resend')}
|
|
|
|
|
disabled={memberStatus === 'INVITE_SENDING' || memberStatus === 'PROMOTION_SENDING'}
|
|
|
|
|
disabled={resendButtonDisabled}
|
|
|
|
|
onClick={async () => {
|
|
|
|
|
const group = await UserGroupsWrapperActions.getGroup(groupPk);
|
|
|
|
|
const member = await MetaGroupWrapperActions.memberGet(groupPk, pubkey);
|
|
|
|
|
|