Add logout button, and show account keys

Changelog-Added: Show logout button and account keys in config
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-06-18 10:35:46 -07:00
parent ae68d8a7e3
commit a417da6089
3 changed files with 47 additions and 0 deletions

View File

@@ -35,6 +35,9 @@ struct MainView: View {
}
}
}
.onReceive(handle_notify(.logout)) { _ in
keypair = nil
}
.onAppear {
keypair = get_saved_keypair()
}