mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 21:28:34 +00:00
Prefer profile photo over system contact photo.
This commit is contained in:
parent
a65c4f90f4
commit
6b2bc924dd
@ -607,8 +607,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 (systemContactPhoto != null) return new SystemContactPhoto(id, systemContactPhoto, 0);
|
||||
else if (profileAvatar != null) return new ProfileContactPhoto(this, profileAvatar);
|
||||
else if (systemContactPhoto != null) return new SystemContactPhoto(id, systemContactPhoto, 0);
|
||||
else return null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user