this.sessionLock = sessionLock;
}
+ public ServiceEnvironmentConfig getServiceEnvironmentConfig() {
+ return serviceEnvironmentConfig;
+ }
+
public SignalServiceAccountManager getAccountManager() {
return getOrCreate(() -> accountManager,
() -> accountManager = new SignalServiceAccountManager(serviceEnvironmentConfig.getSignalServiceConfiguration(),
return getOrCreate(() -> cipher, () -> {
final var certificateValidator = new CertificateValidator(serviceEnvironmentConfig.getUnidentifiedSenderTrustRoot());
final var address = new SignalServiceAddress(credentialsProvider.getAci(), credentialsProvider.getE164());
- cipher = new SignalServiceCipher(address, dataStore, sessionLock, certificateValidator);
+ final var deviceId = credentialsProvider.getDeviceId();
+ cipher = new SignalServiceCipher(address, deviceId, dataStore, sessionLock, certificateValidator);
});
}