android icon indicating copy to clipboard operation
android copied to clipboard

Submitting the receiver's display name

Open The-Hidden-Hand opened this issue 5 years ago • 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 <[email protected]>". Backend was updated for this as well, updated api docs.

The-Hidden-Hand avatar Mar 29 '21 12:03 The-Hidden-Hand

hi @The-Hidden-Hand . I tried to study how this function works on the web. When I enter an address in the format Alex [email protected] - 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 avatar Sep 24 '21 13:09 alexdwork2018

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

mailto:[email protected] mailto:[email protected]?subject=XXX Display Name <[email protected]> [email protected]

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.

The-Hidden-Hand avatar Sep 29 '21 13:09 The-Hidden-Hand

https://github.com/CTemplar/android/pull/451 https://github.com/CTemplar/android/commit/ff3fa69f214b3cbca91326d88a8c2c96254b58ec '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.

alexdwork2018 avatar Jan 21 '22 13:01 alexdwork2018