Call getter instead of using cached instance variable

This commit is contained in:
AsamK 2024-09-08 10:14:47 +02:00
parent 65adfdd6f5
commit 52bb92dce4

View file

@ -185,7 +185,7 @@ public class SignalDependencies {
public SignalServiceMessageReceiver getMessageReceiver() {
return getOrCreate(() -> messageReceiver,
() -> messageReceiver = new SignalServiceMessageReceiver(pushServiceSocket));
() -> messageReceiver = new SignalServiceMessageReceiver(getPushServiceSocket()));
}
public SignalServiceMessageSender getMessageSender() {
@ -197,7 +197,7 @@ public class SignalDependencies {
Optional.empty(),
executor,
ServiceConfig.MAX_ENVELOPE_SIZE,
pushServiceSocket));
getPushServiceSocket()));
}
public List<SecureValueRecovery> getSecureValueRecoveryV2() {