mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 10:20:25 +01:00
Remove Message Requests feature flag.
This commit is contained in:
committed by
Greyson Parrelli
parent
f2fe81d9b5
commit
3d7cffef2b
@@ -14,6 +14,7 @@ public final class MiscellaneousValues extends SignalStoreValues {
|
||||
|
||||
@Override
|
||||
void onFirstEverAppLaunch() {
|
||||
putLong(MESSAGE_REQUEST_ENABLE_TIME, System.currentTimeMillis());
|
||||
}
|
||||
|
||||
public long getLastPrekeyRefreshTime() {
|
||||
@@ -25,11 +26,7 @@ public final class MiscellaneousValues extends SignalStoreValues {
|
||||
}
|
||||
|
||||
public long getMessageRequestEnableTime() {
|
||||
return getLong(MESSAGE_REQUEST_ENABLE_TIME, 0);
|
||||
}
|
||||
|
||||
public void setMessageRequestEnableTime(long time) {
|
||||
putLong(MESSAGE_REQUEST_ENABLE_TIME, time);
|
||||
return getLong(MESSAGE_REQUEST_ENABLE_TIME, System.currentTimeMillis());
|
||||
}
|
||||
|
||||
public long getLastProfileRefreshTime() {
|
||||
|
||||
@@ -37,9 +37,14 @@ public final class SignalStore {
|
||||
}
|
||||
|
||||
public static void onFirstEverAppLaunch() {
|
||||
kbsValues().onFirstEverAppLaunch();
|
||||
registrationValues().onFirstEverAppLaunch();
|
||||
pinValues().onFirstEverAppLaunch();
|
||||
remoteConfigValues().onFirstEverAppLaunch();
|
||||
storageServiceValues().onFirstEverAppLaunch();
|
||||
uiHints().onFirstEverAppLaunch();
|
||||
tooltips().onFirstEverAppLaunch();
|
||||
misc().onFirstEverAppLaunch();
|
||||
}
|
||||
|
||||
public static @NonNull KbsValues kbsValues() {
|
||||
@@ -93,28 +98,4 @@ public final class SignalStore {
|
||||
private static @NonNull KeyValueStore getStore() {
|
||||
return INSTANCE.store;
|
||||
}
|
||||
|
||||
private static void putBlob(@NonNull String key, byte[] value) {
|
||||
getStore().beginWrite().putBlob(key, value).apply();
|
||||
}
|
||||
|
||||
private static void putBoolean(@NonNull String key, boolean value) {
|
||||
getStore().beginWrite().putBoolean(key, value).apply();
|
||||
}
|
||||
|
||||
private static void putFloat(@NonNull String key, float value) {
|
||||
getStore().beginWrite().putFloat(key, value).apply();
|
||||
}
|
||||
|
||||
private static void putInteger(@NonNull String key, int value) {
|
||||
getStore().beginWrite().putInteger(key, value).apply();
|
||||
}
|
||||
|
||||
private static void putLong(@NonNull String key, long value) {
|
||||
getStore().beginWrite().putLong(key, value).apply();
|
||||
}
|
||||
|
||||
private static void putString(@NonNull String key, String value) {
|
||||
getStore().beginWrite().putString(key, value).apply();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user