feat: send invites when a recipient

is not resolved
This commit is contained in:
Carlosokumu 2025-04-01 16:30:08 +03:00
parent 6cdee7b58b
commit 5f24ff3b1b
Signed by: carlos
GPG Key ID: 7BD6BC8160A5C953

View File

@ -1695,12 +1695,12 @@ func (h *MenuHandlers) InviteValidRecipient(ctx context.Context, sym string, inp
return res, fmt.Errorf("Data error encountered")
}
// TODO
// send an invitation SMS
// if successful
// res.Content = l.Get("Your invitation to %s to join Sarafu Network has been sent.", string(recipient))
res.Content = l.Get("Your invite request for %s to Sarafu Network failed. Please try again later.", string(recipient))
_, err := h.accountService.SendUpsellSMS(ctx, sessionId, string(recipient))
if err != nil {
res.Content = l.Get("Your invite request for %s to Sarafu Network failed. Please try again later.", string(recipient))
return res, nil
}
res.Content = l.Get("Your invitation to %s to join Sarafu Network has been sent.", string(recipient))
return res, nil
}