commit c58c349053e0a4ba237158890f7ebe450238fab6
parent 4d358415bd8e7570107ca77063813af682bf31c0
Author: Swift <scoder1747@gmail.com>
Date: Wed, 4 Jan 2023 19:02:19 -0500
Hide profile edit button for pubkey user
Closes: #249
Changelog-Fixed: Hide profile edit button when logged in with pubkey
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)
}