commit 44a59e8d573bff31b95b15bac5a878a64350eb58 parent 98685645d307a23bf6fb8e59d33bf2a63c113cc3 Author: Swift <scoder1747@gmail.com> Date: Tue, 14 Mar 2023 16:07:32 -0400 Remove authentication for copying npub Changelog-Fixed: Remove authentication for copying npub Closes: #778 Diffstat:
M | damus/Views/ConfigView.swift | | | 14 | ++++++++++---- |
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/damus/Views/ConfigView.swift b/damus/Views/ConfigView.swift @@ -72,12 +72,18 @@ struct ConfigView: View { self.pubkey_copied = is_pk generator.impactOccurred() } - if has_authenticated_locally { + if is_pk { + // When trying to copy npub copyKey() } else { - authenticateLocally { success in - if success { - copyKey() + // When trying to copy nsec + if has_authenticated_locally { + copyKey() + } else { + authenticateLocally { success in + if success { + copyKey() + } } } }