mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-25 19:46: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() {
|
fun clearEncryptedStorage() {
|
||||||
encryptedPreferences.edit().apply {
|
encryptedPreferences.edit().apply {
|
||||||
remove("nostr_privkey")
|
encryptedPreferences.all.keys.forEach { remove(it) }
|
||||||
remove("nostr_pubkey")
|
|
||||||
remove("following_channels")
|
|
||||||
remove("hidden_users")
|
|
||||||
remove("relays")
|
|
||||||
remove("dontTranslateFrom")
|
|
||||||
remove("languagePreferences")
|
|
||||||
remove("translateTo")
|
|
||||||
remove("zapAmounts")
|
|
||||||
remove("latestContactList")
|
|
||||||
}.apply()
|
}.apply()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user