Flag username for restore on re-register.

This commit is contained in:
Cody Henthorne
2025-05-13 12:24:13 -04:00
committed by Michelle Tang
parent e5d55418ac
commit feae417af5
2 changed files with 8 additions and 0 deletions

View File

@@ -107,6 +107,10 @@ class RegistrationViewModel : ViewModel() {
store.update {
it.copy(isReRegister = value)
}
if (value) {
SignalStore.misc.needsUsernameRestore = true
}
}
val phoneNumber: Phonenumber.PhoneNumber?

View File

@@ -123,6 +123,10 @@ class RegistrationViewModel : ViewModel() {
store.update {
it.copy(isReRegister = value)
}
if (value) {
SignalStore.misc.needsUsernameRestore = true
}
}
val phoneNumber: Phonenumber.PhoneNumber?