mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-06-29 02:26:05 +01:00
Stop unregistered KT failures.
This commit is contained in:
+2
-1
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user