feat: send invites when a recipient
is not resolved
This commit is contained in:
parent
8bf48cb081
commit
695bfed349
@ -1715,13 +1715,13 @@ func (h *MenuHandlers) InviteValidRecipient(ctx context.Context, sym string, inp
|
|||||||
return res, fmt.Errorf("Data error encountered")
|
return res, fmt.Errorf("Data error encountered")
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO
|
_, err := h.accountService.SendUpsellSMS(ctx, sessionId, string(recipient))
|
||||||
// send an invitation SMS
|
if err != nil {
|
||||||
// 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))
|
res.Content = l.Get("Your invite request for %s to Sarafu Network failed. Please try again later.", string(recipient))
|
||||||
return res, nil
|
return res, nil
|
||||||
|
}
|
||||||
|
res.Content = l.Get("Your invitation to %s to join Sarafu Network has been sent.", string(recipient))
|
||||||
|
return res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ResetTransactionAmount resets the transaction amount and invalid flag.
|
// ResetTransactionAmount resets the transaction amount and invalid flag.
|
||||||
|
Loading…
Reference in New Issue
Block a user