hatchways / team-penguin

World Chat Messenger allows users from completely different language backgrounds to converse with each other in their own language taking globalization to the next level.
2 stars 0 forks source link

BE: Invitation Dialog (link and email) #40

Open sina-jamshidi opened 4 years ago

sina-jamshidi commented 4 years ago
cch5ng commented 4 years ago

should this ticket include this case:

and handling the referral link route? or would those be separate tickets?

sina-jamshidi commented 4 years ago

should this ticket include this case:

  • to user is already registered?

and handling the referral link route? or would those be separate tickets?

You should handle that case and the referral route as well. Feel free to do it under this ticket or make your own if you prefer.

cch5ng commented 4 years ago

appending requirements discussed in slack (for code reviewers)


hi Carol let's store the email address as to_user and from_user to answer your questions, an invitation is technically an invitation to connect There will be two flows that an invitation can get created When an email is typed in and sent

  • An invitation is created
  • An email is sent

When a referral link is sent and another user visits that link


ok, it seems like there are 3 case scenarios then. 1 to user is already registered so just create the invitation (it will show in their UI) 2 to user is not registered and they will get an automated email through sendgrid, which contains a referral link 3 to user is not registered and they get a manual email with referral link in cases #2 and 3, hold off creating the invitation until after registration; then automatically set approval to true