mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 19:06:34 +02:00
Let it throw in the giftwrap parser to make sure Notifications work
This commit is contained in:
@@ -77,13 +77,7 @@ class GiftWrapEvent(
|
||||
onReady: (Event) -> Unit,
|
||||
) {
|
||||
plainContent(signer) { giftStr ->
|
||||
val gift =
|
||||
try {
|
||||
fromJson(giftStr)
|
||||
} catch (e: Exception) {
|
||||
Log.w("GiftWrapEvent", "Couldn't Parse the content " + this.toNostrUri() + " " + giftStr)
|
||||
return@plainContent
|
||||
}
|
||||
val gift = fromJson(giftStr)
|
||||
|
||||
if (gift is WrappedEvent) {
|
||||
gift.host = HostStub(this.id, this.pubKey, this.kind)
|
||||
|
Reference in New Issue
Block a user