Remove authentication for copying npub
Changelog-Fixed: Remove authentication for copying npub Closes: #778
This commit is contained in:
@@ -72,12 +72,18 @@ struct ConfigView: View {
|
|||||||
self.pubkey_copied = is_pk
|
self.pubkey_copied = is_pk
|
||||||
generator.impactOccurred()
|
generator.impactOccurred()
|
||||||
}
|
}
|
||||||
if has_authenticated_locally {
|
if is_pk {
|
||||||
|
// When trying to copy npub
|
||||||
copyKey()
|
copyKey()
|
||||||
} else {
|
} else {
|
||||||
authenticateLocally { success in
|
// When trying to copy nsec
|
||||||
if success {
|
if has_authenticated_locally {
|
||||||
copyKey()
|
copyKey()
|
||||||
|
} else {
|
||||||
|
authenticateLocally { success in
|
||||||
|
if success {
|
||||||
|
copyKey()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user