fix(desktop): wire gift wrap broadcast for DM reactions

The sendWrappedReaction function was creating NIP-17 gift wraps via
NIP17Factory but never broadcasting them. Added sendGiftWraps() to
IAccount interface with implementations in both Desktop and Android.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
nrobi144
2026-02-19 09:34:33 +02:00
parent 3f5ad8f7be
commit 5d983c5d27
4 changed files with 33 additions and 5 deletions
@@ -30,6 +30,7 @@ import com.vitorpamplona.quartz.nip47WalletConnect.LnZapPaymentResponseEvent
import com.vitorpamplona.quartz.nip47WalletConnect.Request
import com.vitorpamplona.quartz.nip47WalletConnect.Response
import com.vitorpamplona.quartz.nip57Zaps.IPrivateZapsDecryptionCache
import com.vitorpamplona.quartz.nip59Giftwrap.wraps.GiftWrapEvent
import com.vitorpamplona.quartz.utils.DualCase
/**
@@ -106,4 +107,7 @@ interface IAccount {
/** Send a NIP-17 gift-wrapped direct message */
suspend fun sendNip17PrivateMessage(template: EventTemplate<ChatMessageEvent>)
/** Broadcast pre-created gift wraps (e.g. reactions within group DMs) */
suspend fun sendGiftWraps(wraps: List<GiftWrapEvent>)
}