mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-09 04:18:11 +02:00
set clearEncryptedStorage to remove all keys including lastRead timestamps
This commit is contained in:
parent
8d7897601b
commit
e07400409f
@ -19,16 +19,7 @@ class LocalPreferences(context: Context) {
|
||||
|
||||
fun clearEncryptedStorage() {
|
||||
encryptedPreferences.edit().apply {
|
||||
remove("nostr_privkey")
|
||||
remove("nostr_pubkey")
|
||||
remove("following_channels")
|
||||
remove("hidden_users")
|
||||
remove("relays")
|
||||
remove("dontTranslateFrom")
|
||||
remove("languagePreferences")
|
||||
remove("translateTo")
|
||||
remove("zapAmounts")
|
||||
remove("latestContactList")
|
||||
encryptedPreferences.all.keys.forEach { remove(it) }
|
||||
}.apply()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user