Fix derivation of RRP in RefreshAttributesJob.

This commit is contained in:
Greyson Parrelli 2024-12-16 12:36:52 -05:00
parent 542374aee0
commit 0ce75b21ee

View file

@ -93,7 +93,7 @@ public class RefreshAttributesJob extends BaseJob {
String registrationLockV2 = null;
SvrValues svrValues = SignalStore.svr();
int pniRegistrationId = RegistrationRepository.getPniRegistrationId();
String recoveryPassword = svrValues.getRecoveryPassword();
String recoveryPassword = svrValues.hasPin() ? svrValues.getMasterKey().deriveRegistrationRecoveryPassword() : null;
if (svrValues.isRegistrationLockEnabled()) {
registrationLockV2 = svrValues.getRegistrationLockToken();