From 0604f797d078a12f1c54b93dcf0893994c591e04 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Fri, 29 Mar 2019 17:26:16 +0100 Subject: [PATCH] check already loaded object in Recipient --- src/org/thoughtcrime/securesms/recipients/Recipient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/recipients/Recipient.java b/src/org/thoughtcrime/securesms/recipients/Recipient.java index 4ef6ac3ef..0275ffda7 100644 --- a/src/org/thoughtcrime/securesms/recipients/Recipient.java +++ b/src/org/thoughtcrime/securesms/recipients/Recipient.java @@ -202,10 +202,10 @@ public class Recipient implements RecipientModifiedListener { public synchronized @Nullable ContactPhoto getContactPhoto(Context context) { LocalFileContactPhoto contactPhoto = null; - if (address.isDcChat()) { + if (dcChat!=null) { contactPhoto = new GroupRecordContactPhoto(context, address); } - else if (address.isDcContact()) { + else if (dcContact!=null) { contactPhoto = new ProfileContactPhoto(context, address); }