mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Store self profile key in profile store after linking
This commit is contained in:
parent
0e65e67077
commit
7bf06aef5e
1 changed files with 6 additions and 5 deletions
|
@ -313,6 +313,11 @@ public class SignalAccount implements Closeable {
|
|||
final var pair = openFileChannel(fileName, true);
|
||||
var signalAccount = new SignalAccount(pair.first(), pair.second());
|
||||
|
||||
signalAccount.dataPath = dataPath;
|
||||
signalAccount.accountPath = accountPath;
|
||||
signalAccount.serviceEnvironment = serviceEnvironment;
|
||||
signalAccount.localRegistrationId = registrationId;
|
||||
signalAccount.trustNewIdentity = trustNewIdentity;
|
||||
signalAccount.setProvisioningData(number,
|
||||
aci,
|
||||
pni,
|
||||
|
@ -323,11 +328,6 @@ public class SignalAccount implements Closeable {
|
|||
pniIdentityKey,
|
||||
profileKey);
|
||||
|
||||
signalAccount.dataPath = dataPath;
|
||||
signalAccount.accountPath = accountPath;
|
||||
signalAccount.serviceEnvironment = serviceEnvironment;
|
||||
signalAccount.localRegistrationId = registrationId;
|
||||
signalAccount.trustNewIdentity = trustNewIdentity;
|
||||
signalAccount.groupStore = new GroupStore(getGroupCachePath(dataPath, accountPath),
|
||||
signalAccount.getRecipientResolver(),
|
||||
signalAccount::saveGroupStore);
|
||||
|
@ -360,6 +360,7 @@ public class SignalAccount implements Closeable {
|
|||
this.pni = pni;
|
||||
this.password = password;
|
||||
this.profileKey = profileKey;
|
||||
getProfileStore().storeSelfProfileKey(getSelfRecipientId(), getProfileKey());
|
||||
this.encryptedDeviceName = encryptedDeviceName;
|
||||
this.deviceId = deviceId;
|
||||
this.aciIdentityKeyPair = aciIdentity;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue