update scan qr screen

This commit is contained in:
2026-05-19 09:53:41 +07:00
parent fd64998fd8
commit 0104cf453d
4 changed files with 72 additions and 25 deletions

View File

@@ -219,6 +219,14 @@ class NostrViewModel(
return nostr.signer.currentUser
}
fun logout() {
viewModelScope.launch {
secretStore.clear("user_signer")
nostr.signer.switch(Keys.generate())
_emptySecret.value = true
}
}
private suspend fun getOrInitAppKeys(): Keys {
val secret = secretStore.get("app_keys")