mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 00:49:44 +00:00
Fix preview tests/snapshots.
This commit is contained in:
+5
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user