mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
check already loaded object in Recipient
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user