Hide profile edit button for pubkey user
Closes: #249 Changelog-Fixed: Hide profile edit button when logged in with pubkey
This commit is contained in:
@@ -218,7 +218,7 @@ struct ProfileView: View {
|
||||
target: profile.get_follow_target(),
|
||||
follow_state: damus_state.contacts.follow_state(profile.pubkey)
|
||||
)
|
||||
} else {
|
||||
} else if damus_state.keypair.privkey != nil {
|
||||
NavigationLink(destination: EditMetadataView(damus_state: damus_state)) {
|
||||
EditButton(damus_state: damus_state)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user