mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 13:06:53 +00:00
Preserve backup vouchers accross re-registration
This commit is contained in:
1 parent
774cc52b61
commit
2af3088571
2 files changed
+9
No files matched your search
@@ -322,6 +322,9 @@ public class Accounts {
|
||||
existingAccount.getBackupCredentialRequest(BackupCredentialType.MESSAGES).orElse(null),
|
||||
existingAccount.getBackupCredentialRequest(BackupCredentialType.MEDIA).orElse(null));
|
||||
|
||||
// Carry over the existing backup voucher to the new account
|
||||
accountToCreate.setBackupVoucher(existingAccount.getBackupVoucher());
|
||||
|
||||
final List<TransactWriteItem> writeItems = new ArrayList<>();
|
||||
|
||||
// If we're reclaiming an account that already has a username, we'd like to give the re-registering client
|
||||
|
||||
Reference in new issue
Block a user