Merge pull request #699 from greenart7c3/main

fix crash tryng to decrypt/parse gossip
pull/700/head
Vitor Pamplona 2023-11-27 12:49:15 -05:00 zatwierdzone przez GitHub
commit 532048c35e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -46,7 +46,11 @@ class SealedGossipEvent(
private fun unseal(signer: NostrSigner, onReady: (Gossip) -> Unit) {
try {
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) {
Log.w("GossipEvent", "Fail to decrypt or parse Gossip", e)