mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 12:37:37 +00:00
Revert to preferring system photos over profile photos.
This commit is contained in:
@@ -259,10 +259,10 @@ public class MultiDeviceContactUpdateJob extends BaseJob {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private Optional<SignalServiceAttachmentStream> getAvatar(@NonNull RecipientId recipientId, @Nullable Uri uri) {
|
private Optional<SignalServiceAttachmentStream> getAvatar(@NonNull RecipientId recipientId, @Nullable Uri uri) {
|
||||||
Optional<SignalServiceAttachmentStream> stream = getProfileAvatar(recipientId);
|
Optional<SignalServiceAttachmentStream> stream = getSystemAvatar(uri);
|
||||||
|
|
||||||
if (!stream.isPresent()) {
|
if (!stream.isPresent()) {
|
||||||
return getSystemAvatar(uri);
|
return getProfileAvatar(recipientId);
|
||||||
}
|
}
|
||||||
|
|
||||||
return stream;
|
return stream;
|
||||||
|
@@ -634,8 +634,8 @@ public class Recipient {
|
|||||||
public @Nullable ContactPhoto getContactPhoto() {
|
public @Nullable ContactPhoto getContactPhoto() {
|
||||||
if (localNumber) return null;
|
if (localNumber) return null;
|
||||||
else if (isGroupInternal() && groupAvatarId.isPresent()) return new GroupRecordContactPhoto(groupId, groupAvatarId.get());
|
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 (systemContactPhoto != null) return new SystemContactPhoto(id, systemContactPhoto, 0);
|
||||||
|
else if (profileAvatar != null && hasProfileImage) return new ProfileContactPhoto(this, profileAvatar);
|
||||||
else return null;
|
else return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user