CTemplar/android

Submitting the receiver's display name

Closed this issue · 3 comments

Expected behavior

From #mobile:
Recently web client was updated for submitting the receiver's display name,it allows to type receiver's email like this "Display Name <example@example.com>". Backend was updated for this as well, updated api docs.

hi @The-Hidden-Hand . I tried to study how this function works on the web. When I enter an address in the format Alex alex@ctemplar.com - the name and quotes will be deleted and only the address will remain. Should an Android app work the same way? What should happen if the user enters a name that does not match the address, client have just to ignore it?

@alexdwork2018
I think the function is to understand emails users will paste in the field and they could come in the following formats:

mailto:blabla@domain.com
mailto:blabla@domain.com?subject=XXX
Display Name <address@domain.com>
email@address.com

I'm not sure if the backend will take the Display Name and use it when sending the emails tho, we can ask Kostya or Nitish.

#451
ff3fa69
'To' email addresses input views were replaced with custom ones. When you paste any text into these fields, the text will be automatically parsed and converted to email address. Example addresses specified in the issue successfully converted to the expected format. Pasting text with a few emails inside will be converted to a list of email addresses with saving ordering.