mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 08:46:47 +00:00
Require that accounts be non-stale when getting/setting backup vouchers
This commit is contained in:
1 parent
ccdbec088f
commit
2c0fc43137
1 file changed
+4
@@ -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