mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-05 12:24:26 +01:00
Fixed address encoding
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user