Add support for displaying both ACI and e164 safety numbers.

This commit is contained in:
Clark
2023-07-19 10:17:45 -04:00
committed by Nicholas
parent 00bbb6bc6e
commit 461875b0e4
29 changed files with 1633 additions and 848 deletions

View File

@@ -17,6 +17,7 @@ public class UiHints extends SignalStoreValues {
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";
private static final String HAS_SEEN_SAFETY_NUMBER_NUX = "uihints.has_seen_safety_number_nux";
UiHints(@NonNull KeyValueStore store) {
super(store);
@@ -109,4 +110,12 @@ public class UiHints extends SignalStoreValues {
public void markHasSeenEditMessageBetaAlert() {
putBoolean(HAS_NOT_SEEN_EDIT_MESSAGE_BETA_ALERT, false);
}
public boolean hasSeenSafetyNumberUpdateNux() {
return getBoolean(HAS_SEEN_SAFETY_NUMBER_NUX, false);
}
public void markHasSeenSafetyNumberUpdateNux() {
putBoolean(HAS_SEEN_SAFETY_NUMBER_NUX, true);
}
}