Refactor ProfileStore to handle name/uuid addresses correctly

This commit is contained in:
AsamK 2020-09-11 16:22:30 +02:00
parent bb24a2aa31
commit ad509e8097
3 changed files with 41 additions and 20 deletions

View file

@ -462,8 +462,8 @@ public class Manager implements Closeable {
// Profiles are cache for 24h before retrieving them again
if (profileEntry == null || profileEntry.getProfile() == null || now - profileEntry.getLastUpdateTimestamp() > 24 * 60 * 60 * 1000) {
SignalProfile profile = retrieveRecipientProfile(address, unidentifiedAccess, profileKey);
profileEntry = new SignalProfileEntry(profileKey, now, profile);
account.getProfileStore().updateProfile(address, profileEntry);
account.getProfileStore().updateProfile(address, profileKey, now, profile);
return profile;
}
return profileEntry.getProfile();
}