Regularly run account consistency checks.

This commit is contained in:
Greyson Parrelli
2023-05-23 15:56:23 -04:00
committed by Nicholas
parent 242900e87f
commit 25779d04a6
3 changed files with 21 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ public final class MiscellaneousValues extends SignalStoreValues {
private static final String USERNAME_QR_CODE_COLOR = "mis.username_qr_color_scheme";
private static final String KEYBOARD_LANDSCAPE_HEIGHT = "misc.keyboard.landscape_height";
private static final String KEYBOARD_PORTRAIT_HEIGHT = "misc.keyboard.protrait_height";
private static final String LAST_CONSISTENCY_CHECK_TIME = "misc.last_consistency_check_time";
MiscellaneousValues(@NonNull KeyValueStore store) {
super(store);
@@ -317,4 +318,12 @@ public final class MiscellaneousValues extends SignalStoreValues {
public void setKeyboardPortraitHeight(int height) {
putInteger(KEYBOARD_PORTRAIT_HEIGHT, height);
}
public long getLastConsistencyCheckTime() {
return getLong(LAST_CONSISTENCY_CHECK_TIME, 0);
}
public void setLastConsistencyCheckTime(long time) {
putLong(LAST_CONSISTENCY_CHECK_TIME, time);
}
}