mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 12:58:34 +00:00
Revert to preferring system photos over profile photos.
This commit is contained in:
parent
5193a5d309
commit
b8e909a134
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user