mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
parent
41bff4a0a7
commit
250f89389e
2 changed files with 9 additions and 5 deletions
|
@ -654,7 +654,7 @@ public class SignalAccount implements Closeable {
|
|||
// Old config file, creating new profile key
|
||||
setProfileKey(KeyUtils.createProfileKey());
|
||||
}
|
||||
getProfileStore().storeProfileKey(getSelfRecipientId(), getProfileKey());
|
||||
getProfileStore().storeSelfProfileKey(getSelfRecipientId(), getProfileKey());
|
||||
|
||||
if (previousStorageVersion < 5) {
|
||||
final var legacyRecipientsStoreFile = new File(userPath, "recipients-store");
|
||||
|
@ -1185,10 +1185,12 @@ public class SignalAccount implements Closeable {
|
|||
}
|
||||
|
||||
public RecipientStore getRecipientStore() {
|
||||
return getOrCreate(() -> recipientStore,
|
||||
() -> recipientStore = new RecipientStore(this::mergeRecipients,
|
||||
this::getSelfRecipientAddress,
|
||||
getAccountDatabase()));
|
||||
return getOrCreate(() -> recipientStore, () -> {
|
||||
recipientStore = new RecipientStore(this::mergeRecipients,
|
||||
this::getSelfRecipientAddress,
|
||||
getAccountDatabase());
|
||||
getProfileStore().storeSelfProfileKey(getSelfRecipientId(), getProfileKey());
|
||||
});
|
||||
}
|
||||
|
||||
public ProfileStore getProfileStore() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue