From 4e329ae48f4e94f0e3e05d24a1c0c0cac8978219 Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Fri, 7 Aug 2026 12:26:23 -0400 Subject: [PATCH] Fix inverted argument order for account recovery passwords --- .../org/whispersystems/textsecuregcm/storage/Account.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/storage/Account.java b/service/src/main/java/org/whispersystems/textsecuregcm/storage/Account.java index cfc477fae..f78da0a09 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/storage/Account.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/storage/Account.java @@ -689,8 +689,8 @@ public class Account { public Optional getAccountRecoveryPassword() { requireNotStale(); - return accountRecoveryPasswordSalt != null && accountRecoveryPasswordHash != null - ? Optional.of(new SaltedTokenHash(accountRecoveryPasswordSalt, accountRecoveryPasswordHash)) + return accountRecoveryPasswordHash != null && accountRecoveryPasswordSalt != null + ? Optional.of(new SaltedTokenHash(accountRecoveryPasswordHash, accountRecoveryPasswordSalt)) : Optional.empty(); }