This early decryption doesn't seem needed anymore. The event consumer in the account will take care of decrypting the new DM

This commit is contained in:
Vitor Pamplona
2025-11-11 19:01:52 -05:00
parent e8eb4c688c
commit bf803384a8
@@ -175,7 +175,6 @@ import com.vitorpamplona.quartz.nip57Zaps.splits.zapSplits
import com.vitorpamplona.quartz.nip57Zaps.zapraiser.zapraiser
import com.vitorpamplona.quartz.nip59Giftwrap.WrappedEvent
import com.vitorpamplona.quartz.nip59Giftwrap.rumors.RumorAssembler
import com.vitorpamplona.quartz.nip59Giftwrap.seals.SealedRumorEvent
import com.vitorpamplona.quartz.nip59Giftwrap.wraps.GiftWrapEvent
import com.vitorpamplona.quartz.nip65RelayList.AdvertisedRelayListEvent
import com.vitorpamplona.quartz.nip65RelayList.tags.AdvertisedRelayInfo
@@ -1470,18 +1469,6 @@ class Account(
val mine = signedEvents.wraps.filter { (it.recipientPubKey() == signer.pubKey) }
mine.forEach { giftWrap ->
val gift = giftWrap.unwrapOrNull(signer)
if (gift is SealedRumorEvent) {
val rumor = gift.unsealOrNull(signer)
if (rumor != null) {
cache.justConsumeMyOwnEvent(rumor)
}
}
if (gift != null) {
cache.justConsumeMyOwnEvent(gift)
}
cache.justConsumeMyOwnEvent(giftWrap)
}