This commit is contained in:
ThomasSession 2024-08-06 14:59:41 +10:00
parent 514c19e33f
commit 71f9548343
2 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@ class CreateAccountManager @Inject constructor(
prefs.setLocalNumber(userHexEncodedPublicKey)
prefs.setRestorationTime(0)
// we'll rely on the config syncing in the homeActivity resume
configFactory.keyPairChanged()
configFactory.user?.setName(displayName)

View File

@ -49,6 +49,7 @@ internal class PickDisplayNameViewModel(
viewModelScope.launch(Dispatchers.IO) {
if (loadFailed) {
prefs.setProfileName(displayName)
// we'll rely on the config syncing in the homeActivity resume
configFactory.user?.setName(displayName)
_events.emit(Event.LoadAccountComplete)