mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-24 03:35:58 +00:00
Clear profile upload flag when unregistering.
This commit is contained in:
committed by
Alex Hart
parent
dee3d2ff2d
commit
aae368c049
@@ -30,6 +30,7 @@ class AdvancedPrivacySettingsViewModel(
|
||||
AdvancedPrivacySettingsRepository.DisablePushMessagesResult.SUCCESS -> {
|
||||
TextSecurePreferences.setPushRegistered(ApplicationDependencies.getApplication(), false)
|
||||
SignalStore.registrationValues().clearRegistrationComplete()
|
||||
SignalStore.registrationValues().clearHasUploadedProfile()
|
||||
}
|
||||
AdvancedPrivacySettingsRepository.DisablePushMessagesResult.NETWORK_ERROR -> {
|
||||
singleEvents.postValue(Event.DISABLE_PUSH_FAILED)
|
||||
|
||||
@@ -55,4 +55,8 @@ public final class RegistrationValues extends SignalStoreValues {
|
||||
public void markHasUploadedProfile() {
|
||||
putBoolean(HAS_UPLOADED_PROFILE, true);
|
||||
}
|
||||
|
||||
public void clearHasUploadedProfile() {
|
||||
putBoolean(HAS_UPLOADED_PROFILE, false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user