mirror of https://github.com/M66B/FairEmail.git
Use email as key for icons
This commit is contained in:
parent
79b20ce1b6
commit
975a5e6bd3
|
@ -113,7 +113,7 @@ public class ContactInfo {
|
||||||
return new ContactInfo();
|
return new ContactInfo();
|
||||||
InternetAddress address = (InternetAddress) addresses[0];
|
InternetAddress address = (InternetAddress) addresses[0];
|
||||||
|
|
||||||
String key = MessageHelper.formatAddresses(new Address[]{address});
|
String key = address.getAddress();
|
||||||
synchronized (emailContactInfo) {
|
synchronized (emailContactInfo) {
|
||||||
ContactInfo info = emailContactInfo.get(key);
|
ContactInfo info = emailContactInfo.get(key);
|
||||||
if (info != null && !info.isExpired())
|
if (info != null && !info.isExpired())
|
||||||
|
|
Loading…
Reference in New Issue