+ ShowCustomAvatars showCustomAvatars = currentSone.getOptions().getShowCustomAvatars();
+ if (showCustomAvatars == ShowCustomAvatars.NEVER) {
+ return null;
+ }
+ if (showCustomAvatars == ShowCustomAvatars.ALWAYS) {
+ return avatarId;
+ }
+ if (showCustomAvatars == ShowCustomAvatars.FOLLOWED) {
+ return currentSone.hasFriend(remoteSone.getId()) ? avatarId : null;
+ }
+ Trust trust = remoteSone.getIdentity().getTrust((OwnIdentity) currentSone.getIdentity());