diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/LocalPreferences.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/LocalPreferences.kt index abef26950..fd601a395 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/LocalPreferences.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/LocalPreferences.kt @@ -434,6 +434,7 @@ object LocalPreferences { }.apply() } } + Log.d("LocalPreferences", "Saved to encrypted storage") } suspend fun loadCurrentAccountFromEncryptedStorage(): AccountSettings? = currentAccount()?.let { loadCurrentAccountFromEncryptedStorage(it) } diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Account.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Account.kt index b1a05cf02..a964b2a2c 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Account.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Account.kt @@ -915,7 +915,7 @@ class Account( } suspend fun decryptPeopleList(event: PeopleListEvent?): PeopleListEvent.UsersAndWords { - if (event == null) return PeopleListEvent.UsersAndWords() + if (event == null || !isWriteable()) return PeopleListEvent.UsersAndWords() return tryAndWait { continuation -> event.publicAndPrivateUsersAndWords(signer) { @@ -925,7 +925,7 @@ class Account( } suspend fun decryptMuteList(event: MuteListEvent?): PeopleListEvent.UsersAndWords { - if (event == null) return PeopleListEvent.UsersAndWords() + if (event == null || !isWriteable()) return PeopleListEvent.UsersAndWords() return tryAndWait { continuation -> event.publicAndPrivateUsersAndWords(signer) {