Revert to preferring system photos over profile photos.

This commit is contained in:
Greyson Parrelli
2020-04-24 08:45:58 -04:00
parent 5193a5d309
commit b8e909a134
2 changed files with 3 additions and 3 deletions

View File

@@ -634,8 +634,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 (profileAvatar != null && hasProfileImage) return new ProfileContactPhoto(this, profileAvatar);
else if (systemContactPhoto != null) return new SystemContactPhoto(id, systemContactPhoto, 0);
else if (profileAvatar != null && hasProfileImage) return new ProfileContactPhoto(this, profileAvatar);
else return null;
}