Clear profile upload flag when unregistering.
This commit is contained in:
parent
dee3d2ff2d
commit
aae368c049
2 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue