mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Refactor ProfileStore to handle name/uuid addresses correctly
This commit is contained in:
parent
bb24a2aa31
commit
ad509e8097
3 changed files with 41 additions and 20 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue