mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-29 04:39:53 +00:00
ios: disable current user profile button
This commit is contained in:
parent
bd158f3b0d
commit
6e131e0bad
2 changed files with 2 additions and 1 deletions
|
@ -113,6 +113,7 @@ struct UserPicker: View {
|
|||
.padding(.trailing)
|
||||
.padding([.leading, .vertical], 12)
|
||||
})
|
||||
.disabled(user.activeUser)
|
||||
.buttonStyle(PressedButtonStyle(defaultColor: fillColor, pressedColor: Color(uiColor: .secondarySystemFill)))
|
||||
}
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ struct UserProfilesView: View {
|
|||
}
|
||||
}
|
||||
|
||||
@ViewBuilder private func userView(_ user: User) -> some View {
|
||||
private func userView(_ user: User) -> some View {
|
||||
Button {
|
||||
changeActiveUser(user.userId)
|
||||
} label: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue