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,
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);
this.pni = pni;
this.password = password;
this.profileKey = profileKey;
+ getProfileStore().storeSelfProfileKey(getSelfRecipientId(), getProfileKey());
this.encryptedDeviceName = encryptedDeviceName;
this.deviceId = deviceId;
this.aciIdentityKeyPair = aciIdentity;