fix crash tryng to decrypt/parse gossip
This commit is contained in:
@@ -46,7 +46,11 @@ class SealedGossipEvent(
|
|||||||
private fun unseal(signer: NostrSigner, onReady: (Gossip) -> Unit) {
|
private fun unseal(signer: NostrSigner, onReady: (Gossip) -> Unit) {
|
||||||
try {
|
try {
|
||||||
plainContent(signer) {
|
plainContent(signer) {
|
||||||
onReady(Gossip.fromJson(it))
|
try {
|
||||||
|
onReady(Gossip.fromJson(it))
|
||||||
|
} catch (e: Exception) {
|
||||||
|
Log.w("GossipEvent", "Fail to decrypt or parse Gossip", e)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Log.w("GossipEvent", "Fail to decrypt or parse Gossip", e)
|
Log.w("GossipEvent", "Fail to decrypt or parse Gossip", e)
|
||||||
|
|||||||
Reference in New Issue
Block a user