From c58c349053e0a4ba237158890f7ebe450238fab6 Mon Sep 17 00:00:00 2001 From: Swift Date: Wed, 4 Jan 2023 19:02:19 -0500 Subject: [PATCH] Hide profile edit button for pubkey user Closes: #249 Changelog-Fixed: Hide profile edit button when logged in with pubkey --- damus/Views/ProfileView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/damus/Views/ProfileView.swift b/damus/Views/ProfileView.swift index b6c0e38b..24ab8624 100644 --- a/damus/Views/ProfileView.swift +++ b/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) }