Stop unregistered KT failures.

This commit is contained in:
Michelle Tang
2026-06-02 23:57:27 -04:00
committed by Alex Hart
parent 1371663163
commit a7ed672634
2 changed files with 7 additions and 4 deletions
@@ -435,7 +435,8 @@ public class ConversationListFragment extends MainFragment implements Conversati
onSearchQueryUpdated(query);
}
if (SignalStore.settings().getAutomaticVerificationEnabled() &&
if (SignalStore.account().isRegistered() &&
SignalStore.settings().getAutomaticVerificationEnabled() &&
SignalStore.misc().getHasKeyTransparencyFailure() &&
!SignalStore.misc().getHasSeenKeyTransparencyFailure()) {
SelfVerificationFailureSheet.show(getParentFragmentManager());
@@ -167,9 +167,11 @@ class CheckKeyTransparencyJob private constructor(
* For others, it will only show once and only be cleared on the next successful verification.
*/
private fun markFailure() {
SignalStore.misc.hasKeyTransparencyFailure = true
if (RemoteConfig.internalUser) {
SignalStore.misc.hasSeenKeyTransparencyFailure = false
if (SignalStore.account.isRegistered) {
SignalStore.misc.hasKeyTransparencyFailure = true
if (RemoteConfig.internalUser) {
SignalStore.misc.hasSeenKeyTransparencyFailure = false
}
}
}