From: AsamK Date: Mon, 26 Feb 2024 17:23:37 +0000 (+0100) Subject: Update account attributes after setting a pin X-Git-Tag: v0.13.1~6 X-Git-Url: https://git.nmode.ca/signal-cli/commitdiff_plain/378ac23c6c1c30ef459b3bf49c9e90f523ccc886?ds=sidebyside Update account attributes after setting a pin Ensures that the recovery password gets set immediately. Related to #1447 --- diff --git a/lib/src/main/java/org/asamk/signal/manager/helper/AccountHelper.java b/lib/src/main/java/org/asamk/signal/manager/helper/AccountHelper.java index 5abac1e7..0e21d8b5 100644 --- a/lib/src/main/java/org/asamk/signal/manager/helper/AccountHelper.java +++ b/lib/src/main/java/org/asamk/signal/manager/helper/AccountHelper.java @@ -500,6 +500,7 @@ public class AccountHelper { dependencies.getAccountManager().enableRegistrationLock(masterKey); account.setRegistrationLockPin(pin); + updateAccountAttributes(); } public void removeRegistrationPin() throws IOException {