Revert to preferring system photos over profile photos.
This commit is contained in:
parent
5193a5d309
commit
b8e909a134
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue