mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
parent
67d8ffcde5
commit
91e0d5164b
2 changed files with 9 additions and 5 deletions
|
@ -172,6 +172,8 @@
|
||||||
"pattern":"\\Qkotlin/coroutines/coroutines.kotlin_builtins\\E"
|
"pattern":"\\Qkotlin/coroutines/coroutines.kotlin_builtins\\E"
|
||||||
}, {
|
}, {
|
||||||
"pattern":"\\Qkotlin/internal/internal.kotlin_builtins\\E"
|
"pattern":"\\Qkotlin/internal/internal.kotlin_builtins\\E"
|
||||||
|
}, {
|
||||||
|
"pattern":"\\Qkotlin/jvm/jvm.kotlin_builtins\\E"
|
||||||
}, {
|
}, {
|
||||||
"pattern":"\\Qkotlin/kotlin.kotlin_builtins\\E"
|
"pattern":"\\Qkotlin/kotlin.kotlin_builtins\\E"
|
||||||
}, {
|
}, {
|
||||||
|
|
|
@ -654,7 +654,7 @@ public class SignalAccount implements Closeable {
|
||||||
// Old config file, creating new profile key
|
// Old config file, creating new profile key
|
||||||
setProfileKey(KeyUtils.createProfileKey());
|
setProfileKey(KeyUtils.createProfileKey());
|
||||||
}
|
}
|
||||||
getProfileStore().storeProfileKey(getSelfRecipientId(), getProfileKey());
|
getProfileStore().storeSelfProfileKey(getSelfRecipientId(), getProfileKey());
|
||||||
|
|
||||||
if (previousStorageVersion < 5) {
|
if (previousStorageVersion < 5) {
|
||||||
final var legacyRecipientsStoreFile = new File(userPath, "recipients-store");
|
final var legacyRecipientsStoreFile = new File(userPath, "recipients-store");
|
||||||
|
@ -1185,10 +1185,12 @@ public class SignalAccount implements Closeable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public RecipientStore getRecipientStore() {
|
public RecipientStore getRecipientStore() {
|
||||||
return getOrCreate(() -> recipientStore,
|
return getOrCreate(() -> recipientStore, () -> {
|
||||||
() -> recipientStore = new RecipientStore(this::mergeRecipients,
|
recipientStore = new RecipientStore(this::mergeRecipients,
|
||||||
this::getSelfRecipientAddress,
|
this::getSelfRecipientAddress,
|
||||||
getAccountDatabase()));
|
getAccountDatabase());
|
||||||
|
getProfileStore().storeSelfProfileKey(getSelfRecipientId(), getProfileKey());
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public ProfileStore getProfileStore() {
|
public ProfileStore getProfileStore() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue