fix draft decryption error

This commit is contained in:
greenart7c3 2024-04-05 05:41:03 -03:00
parent 1b7ba3de01
commit 6b15a0db8e

View File

@ -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)
}