Browse Source

Hide profile edit button for pubkey user

Closes: #249
Changelog-Fixed: Hide profile edit button when logged in with pubkey
translations_damus-localizations-en-us-xcloc-localized-contents-en-us-xliff--master_es_419
Swift 2 years ago
committed by William Casarin
parent
commit
c58c349053
  1. 2
      damus/Views/ProfileView.swift

2
damus/Views/ProfileView.swift

@ -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)
}

Loading…
Cancel
Save