Merge pull request from greenart7c3/draft_decryption_error

fix draft decryption error
This commit is contained in:
Vitor Pamplona 2024-04-05 08:03:39 -04:00 committed by GitHub
commit 818ca7e39e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -78,7 +78,13 @@ class DraftEvent(
onReady: (Event) -> Unit,
) {
try {
plainContent(signer) { onReady(fromJson(it)) }
plainContent(signer) {
try {
onReady(fromJson(it))
} catch (e: Exception) {
// Log.e("UnwrapError", "Couldn't Decrypt the content", e)
}
}
} catch (e: Exception) {
// Log.e("UnwrapError", "Couldn't Decrypt the content", e)
}