mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-19 23:38:07 +01:00
Require that accounts be non-stale when getting/setting backup vouchers
This commit is contained in:
committed by
Jon Chambers
parent
ccdbec088f
commit
2c0fc43137
@@ -518,10 +518,14 @@ public class Account {
|
||||
}
|
||||
|
||||
public @Nullable BackupVoucher getBackupVoucher() {
|
||||
requireNotStale();
|
||||
|
||||
return backupVoucher;
|
||||
}
|
||||
|
||||
public void setBackupVoucher(final @Nullable BackupVoucher backupVoucher) {
|
||||
requireNotStale();
|
||||
|
||||
this.backupVoucher = backupVoucher;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user