]> nmode's Git Repositories - signal-cli/commitdiff
Update account attributes after setting a pin
authorAsamK <asamk@gmx.de>
Mon, 26 Feb 2024 17:23:37 +0000 (18:23 +0100)
committerAsamK <asamk@gmx.de>
Mon, 26 Feb 2024 17:23:37 +0000 (18:23 +0100)
Ensures that the recovery password gets set immediately.

Related to #1447

lib/src/main/java/org/asamk/signal/manager/helper/AccountHelper.java

index 5abac1e7b48754bbf38d6bcbe946266fd5cdcaa5..0e21d8b50d0b96cf9bedf21eed2847409dc39a35 100644 (file)
@@ -500,6 +500,7 @@ public class AccountHelper {
         dependencies.getAccountManager().enableRegistrationLock(masterKey);
 
         account.setRegistrationLockPin(pin);
         dependencies.getAccountManager().enableRegistrationLock(masterKey);
 
         account.setRegistrationLockPin(pin);
+        updateAccountAttributes();
     }
 
     public void removeRegistrationPin() throws IOException {
     }
 
     public void removeRegistrationPin() throws IOException {