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

@ -259,10 +259,10 @@ public class MultiDeviceContactUpdateJob extends BaseJob {
}
private Optional<SignalServiceAttachmentStream> getAvatar(@NonNull RecipientId recipientId, @Nullable Uri uri) {
Optional<SignalServiceAttachmentStream> stream = getProfileAvatar(recipientId);
Optional<SignalServiceAttachmentStream> stream = getSystemAvatar(uri);
if (!stream.isPresent()) {
return getSystemAvatar(uri);
return getProfileAvatar(recipientId);
}
return stream;

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;
}