From 975a5e6bd3d4f6ca9380fd82cb2d551169f5381a Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 11 Oct 2019 10:01:03 +0200 Subject: [PATCH] Use email as key for icons --- app/src/main/java/eu/faircode/email/ContactInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ContactInfo.java b/app/src/main/java/eu/faircode/email/ContactInfo.java index 8296d27b6f..2d138db05f 100644 --- a/app/src/main/java/eu/faircode/email/ContactInfo.java +++ b/app/src/main/java/eu/faircode/email/ContactInfo.java @@ -113,7 +113,7 @@ public class ContactInfo { return new ContactInfo(); InternetAddress address = (InternetAddress) addresses[0]; - String key = MessageHelper.formatAddresses(new Address[]{address}); + String key = address.getAddress(); synchronized (emailContactInfo) { ContactInfo info = emailContactInfo.get(key); if (info != null && !info.isExpired())