Combine the user's own display name/avatar into a single profile.

This is in preparation for adding the user status fields into the profile.
This commit is contained in:
Doug
2026-07-01 16:45:42 +01:00
committed by Doug
parent b8860baf49
commit ace05b97d0
17 changed files with 88 additions and 175 deletions
@@ -16,26 +16,22 @@ enum UserDetailsEditScreenViewModelAction {
}
struct UserDetailsEditScreenViewState: BindableState {
let userID: String
var currentUserProfile: UserProfile
var canEditAvatar = true
var canEditDisplayName = true
var currentAvatarURL: URL?
var selectedAvatarURL: URL?
var currentDisplayName: String?
var localMedia: MediaInfo?
var bindings: UserDetailsEditScreenViewStateBindings
var nameDidChange: Bool {
bindings.name != currentDisplayName
bindings.name != currentUserProfile.displayName
}
var avatarDidChange: Bool {
localMedia != nil || selectedAvatarURL != currentAvatarURL
localMedia != nil || selectedAvatarURL != currentUserProfile.avatarURL
}
var canSave: Bool {