Fix crash in RegistrationCompleteFragment.
This commit is contained in:
parent
e635c3030e
commit
8910eac6e0
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class RegistrationCompleteFragment : LoggingFragment() {
|
|||
Log.i(TAG, "Performing pin restore.")
|
||||
activity.startActivity(Intent(activity, PinRestoreActivity::class.java))
|
||||
} else {
|
||||
val viewModel: RegistrationViewModel by viewModels()
|
||||
val viewModel: RegistrationViewModel by viewModels(ownerProducer = { requireActivity() })
|
||||
|
||||
val isProfileNameEmpty = Recipient.self().profileName.isEmpty
|
||||
val isAvatarEmpty = !AvatarHelper.hasAvatar(activity, Recipient.self().id)
|
||||
|
|
Loading…
Add table
Reference in a new issue