Open eliseealex opened 10 years ago
I think there is an error with detection of synchronization of contact and profile picture in Friend.java:
public void savePictureHash(){ profilePictureSyncHash = profilePicture != null ? profilePicture.hashCode() : 0; } public boolean hasSyncedPicture(){ if(profilePicture == null) return false; return profilePictureSyncHash == profilePicture.hashCode(); }
As i can see we compare the same picture, instead of comparing profile and contact picture. Also the problem is that we do not create a hash before the first comparison pictures.
I think there is an error with detection of synchronization of contact and profile picture in Friend.java:
public void savePictureHash(){ profilePictureSyncHash = profilePicture != null ? profilePicture.hashCode() : 0; } public boolean hasSyncedPicture(){ if(profilePicture == null) return false; return profilePictureSyncHash == profilePicture.hashCode(); }
As i can see we compare the same picture, instead of comparing profile and contact picture. Also the problem is that we do not create a hash before the first comparison pictures.