mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-20 19:20:58 +02:00
set clearEncryptedStorage to remove all keys including lastRead timestamps
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user