Clear out any existing registration sessions if the E164 changes.

This commit is contained in:
Nicholas Tinsley
2024-07-23 16:34:40 -04:00
parent 7b0badef19
commit 57feb272d2

View File

@@ -142,7 +142,8 @@ class RegistrationViewModel : ViewModel() {
fun setPhoneNumber(phoneNumber: Phonenumber.PhoneNumber?) {
store.update {
it.copy(phoneNumber = phoneNumber)
it.copy(phoneNumber = phoneNumber,
sessionId = null)
}
}