damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 73110952e5af9380e2809fcf939f803d591b2f51
parent d01e7c059540cc4986a1fd269638631767c46599
Author: Swift <scoder1747@gmail.com>
Date:   Fri, 13 Jan 2023 17:28:43 -0500

Avoid showing wrong alert message for pubkey login user.

Diffstat:
Mdamus/Views/SideMenuView.swift | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/damus/Views/SideMenuView.swift b/damus/Views/SideMenuView.swift @@ -135,7 +135,11 @@ struct SideMenuView: View { Button(action: { //ConfigView(state: damus_state) - confirm_logout = true + if damus_state.keypair.privkey == nil { + notify(.logout, ()) + } else { + confirm_logout = true + } }, label: { Label(NSLocalizedString("Sign out", comment: "Sidebar menu label to sign out of the account."), systemImage: "pip.exit") .font(.title3)