Prepare edit message for beta run.

This commit is contained in:
Clark
2023-06-14 17:34:21 -04:00
committed by Cody Henthorne
parent d0a232d86a
commit f23e5bdb44
5 changed files with 37 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ public class UiHints extends SignalStoreValues {
private static final String HAS_SEEN_SCHEDULED_MESSAGES_INFO_ONCE = "uihints.has_seen_scheduled_messages_info_once";
private static final String HAS_SEEN_USERNAME_EDUCATION = "uihints.has_seen_username_education";
private static final String HAS_SEEN_TEXT_FORMATTING_ALERT = "uihints.text_formatting.has_seen_alert";
private static final String HAS_NOT_SEEN_EDIT_MESSAGE_BETA_ALERT = "uihints.edit_message.has_not_seen_beta_alert";
UiHints(@NonNull KeyValueStore store) {
super(store);
@@ -100,4 +101,12 @@ public class UiHints extends SignalStoreValues {
public void markHasSeenTextFormattingAlert() {
putBoolean(HAS_SEEN_TEXT_FORMATTING_ALERT, false);
}
public boolean hasNotSeenEditMessageBetaAlert() {
return getBoolean(HAS_NOT_SEEN_EDIT_MESSAGE_BETA_ALERT, true);
}
public void markHasSeenEditMessageBetaAlert() {
putBoolean(HAS_NOT_SEEN_EDIT_MESSAGE_BETA_ALERT, false);
}
}