/* not logged in? don’t show custom avatars, then. */
return null;
}
- if (profile.getSone().equals(currentSone)) {
- /* always show your own avatar. */
+ Sone remoteSone = profile.getSone();
+ if (core.isLocalSone(remoteSone)) {
+ /* always show your own avatars. */
return profile.getAvatar();
}
ShowCustomAvatars showCustomAvatars = currentSone.getOptions().<ShowCustomAvatars> getEnumOption("ShowCustomAvatars").get();
if ((showCustomAvatars == ShowCustomAvatars.ALWAYS) || (avatarId == null)) {
return avatarId;
}
- Sone remoteSone = profile.getSone();
if ((showCustomAvatars == ShowCustomAvatars.FOLLOWED) && currentSone.hasFriend(remoteSone.getId())) {
return avatarId;
}