Fix preview tests/snapshots.

This commit is contained in:
Doug
2026-07-02 10:12:56 +01:00
committed by Doug
parent ace05b97d0
commit e3ac4a0b6c
15 changed files with 39 additions and 32 deletions
@@ -28,8 +28,11 @@ class UserDetailsEditScreenViewModel: UserDetailsEditScreenViewModelType, UserDe
self.mediaUploadingPreprocessor = mediaUploadingPreprocessor
self.userIndicatorController = userIndicatorController
super.init(initialViewState: UserDetailsEditScreenViewState(currentUserProfile: clientProxy.userProfilePublisher.value,
bindings: .init()), mediaProvider: userSession.mediaProvider)
let profile = clientProxy.userProfilePublisher.value
super.init(initialViewState: UserDetailsEditScreenViewState(currentUserProfile: profile,
selectedAvatarURL: profile.avatarURL,
bindings: .init(name: profile.displayName ?? "")),
mediaProvider: userSession.mediaProvider)
clientProxy.userProfilePublisher
.receive(on: DispatchQueue.main)