From 0a004132285351c4bfe1abe39603f795b35b9374 Mon Sep 17 00:00:00 2001 From: Nicholas Tinsley Date: Tue, 28 Feb 2023 11:42:28 -0500 Subject: [PATCH] Clear unauthorized banner on registration. --- .../securesms/registration/RegistrationRepository.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/registration/RegistrationRepository.java b/app/src/main/java/org/thoughtcrime/securesms/registration/RegistrationRepository.java index b4847948e..b9b97ec3e 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/registration/RegistrationRepository.java +++ b/app/src/main/java/org/thoughtcrime/securesms/registration/RegistrationRepository.java @@ -174,6 +174,7 @@ public final class RegistrationRepository { SignalStore.account().setServicePassword(registrationData.getPassword()); SignalStore.account().setRegistered(true); TextSecurePreferences.setPromptedPushRegistration(context, true); + TextSecurePreferences.setUnauthorizedReceived(context, false); NotificationManagerCompat.from(context).cancel(NotificationIds.UNREGISTERED_NOTIFICATION_ID); PinState.onRegistration(context, kbsData, pin, hasPin, setRegistrationLockEnabled);