Add capability to request username creation during registration.

This commit is contained in:
Alex Hart
2022-09-08 13:02:56 -03:00
committed by Greyson Parrelli
parent 7e45fc4a3e
commit 977af2c2f3
14 changed files with 328 additions and 75 deletions

View File

@@ -9,6 +9,7 @@ public class UiHints extends SignalStoreValues {
private static final String HAS_SEEN_GROUP_SETTINGS_MENU_TOAST = "uihints.has_seen_group_settings_menu_toast";
private static final String HAS_CONFIRMED_DELETE_FOR_EVERYONE_ONCE = "uihints.has_confirmed_delete_for_everyone_once";
private static final String HAS_SET_OR_SKIPPED_USERNAME_CREATION = "uihints.has_set_or_skipped_username_creation";
UiHints(@NonNull KeyValueStore store) {
super(store);
@@ -39,4 +40,12 @@ public class UiHints extends SignalStoreValues {
public boolean hasConfirmedDeleteForEveryoneOnce() {
return getBoolean(HAS_CONFIRMED_DELETE_FOR_EVERYONE_ONCE, false);
}
public boolean hasSetOrSkippedUsernameCreation() {
return getBoolean(HAS_SET_OR_SKIPPED_USERNAME_CREATION, false);
}
public void markHasSetOrSkippedUsernameCreation() {
putBoolean(HAS_SET_OR_SKIPPED_USERNAME_CREATION, true);
}
}