Prefer profile photo over system contact photo.

This commit is contained in:
Alex Hart 2020-04-01 13:39:22 -03:00 committed by Greyson Parrelli
parent a65c4f90f4
commit 6b2bc924dd

View File

@ -607,8 +607,8 @@ public class Recipient {
public @Nullable ContactPhoto getContactPhoto() {
if (localNumber) return null;
else if (isGroupInternal() && groupAvatarId.isPresent()) return new GroupRecordContactPhoto(groupId, groupAvatarId.get());
else if (systemContactPhoto != null) return new SystemContactPhoto(id, systemContactPhoto, 0);
else if (profileAvatar != null) return new ProfileContactPhoto(this, profileAvatar);
else if (systemContactPhoto != null) return new SystemContactPhoto(id, systemContactPhoto, 0);
else return null;
}