logout: clear keypair on logout

Fixes: #12
Reported-by: Jeff Thibault (github:jeffthibault)
Changelog-Fixed: Logging out now resets your keypair and actually logs out
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-07-28 12:52:58 -07:00
parent fead2a498f
commit f522fc79df
3 changed files with 13 additions and 3 deletions

View File

@@ -36,6 +36,7 @@ struct MainView: View {
}
}
.onReceive(handle_notify(.logout)) { _ in
clear_keypair()
keypair = nil
}
.onAppear {