Add PNP linked device initialization job.

Co-authored-by: Greyson Parrelli <greyson@signal.org>
This commit is contained in:
Cody Henthorne
2022-09-09 20:17:41 -04:00
committed by Greyson Parrelli
parent e2a7ed86e4
commit beee3b7dc3
18 changed files with 230 additions and 68 deletions

View File

@@ -26,6 +26,7 @@ public final class MiscellaneousValues extends SignalStoreValues {
private static final String CDS_TOKEN = "misc.cds_token";
private static final String LAST_FCM_FOREGROUND_TIME = "misc.last_fcm_foreground_time";
private static final String LAST_FOREGROUND_TIME = "misc.last_foreground_time";
private static final String PNI_INITIALIZED_DEVICES = "misc.pni_initialized_devices";
MiscellaneousValues(@NonNull KeyValueStore store) {
super(store);
@@ -184,4 +185,12 @@ public final class MiscellaneousValues extends SignalStoreValues {
public void setLastForegroundTime(long time) {
putLong(LAST_FOREGROUND_TIME, time);
}
public boolean hasPniInitializedDevices() {
return getBoolean(PNI_INITIALIZED_DEVICES, false);
}
public void setPniInitializedDevices(boolean value) {
putBoolean(PNI_INITIALIZED_DEVICES, value);
}
}