mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-25 05:27:42 +00:00
Clear out any existing registration sessions if the E164 changes.
This commit is contained in:
@@ -142,7 +142,8 @@ class RegistrationViewModel : ViewModel() {
|
||||
|
||||
fun setPhoneNumber(phoneNumber: Phonenumber.PhoneNumber?) {
|
||||
store.update {
|
||||
it.copy(phoneNumber = phoneNumber)
|
||||
it.copy(phoneNumber = phoneNumber,
|
||||
sessionId = null)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user