Add timestamp to account file

Closes #1498
This commit is contained in:
AsamK 2024-04-19 17:25:43 +02:00
parent 0a82c51b79
commit f0054372b8
2 changed files with 3 additions and 1 deletions

View file

@ -959,6 +959,7 @@ public class SignalAccount implements Closeable {
synchronized (fileChannel) {
final var base64 = Base64.getEncoder();
final var storage = new Storage(CURRENT_STORAGE_VERSION,
System.currentTimeMillis(),
serviceEnvironment.name(),
registered,
number,
@ -1858,6 +1859,7 @@ public class SignalAccount implements Closeable {
public record Storage(
int version,
long timestamp,
String serviceEnvironment,
boolean registered,
String number,