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,
|
onReady: (Event) -> Unit,
|
||||||
) {
|
) {
|
||||||
plainContent(signer) { giftStr ->
|
plainContent(signer) { giftStr ->
|
||||||
val gift =
|
val gift = fromJson(giftStr)
|
||||||
try {
|
|
||||||
fromJson(giftStr)
|
|
||||||
} catch (e: Exception) {
|
|
||||||
Log.w("GiftWrapEvent", "Couldn't Parse the content " + this.toNostrUri() + " " + giftStr)
|
|
||||||
return@plainContent
|
|
||||||
}
|
|
||||||
|
|
||||||
if (gift is WrappedEvent) {
|
if (gift is WrappedEvent) {
|
||||||
gift.host = HostStub(this.id, this.pubKey, this.kind)
|
gift.host = HostStub(this.id, this.pubKey, this.kind)
|
||||||
|
|||||||
Reference in New Issue
Block a user