mirror of https://github.com/M66B/FairEmail.git
Fixed address encoding
This commit is contained in:
parent
9006f0ffe9
commit
150bd4989f
|
@ -749,7 +749,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
|
||||
try {
|
||||
InternetAddress via = new InternetAddress(message.identityEmail, message.identityName);
|
||||
tvIdentity.setText(via.toString());
|
||||
tvIdentity.setText(MessageHelper.formatAddresses(new Address[]{via}));
|
||||
} catch (UnsupportedEncodingException ex) {
|
||||
tvIdentity.setText(ex.getMessage());
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@ public class ContactInfo {
|
|||
return new ContactInfo();
|
||||
InternetAddress address = (InternetAddress) addresses[0];
|
||||
|
||||
String key = address.toString();
|
||||
String key = MessageHelper.formatAddresses(new Address[]{address});
|
||||
synchronized (emailContactInfo) {
|
||||
ContactInfo info = emailContactInfo.get(key);
|
||||
if (info != null && !info.isExpired())
|
||||
|
|
Loading…
Reference in New Issue