feat: emoji reactions

This commit is contained in:
codytseng
2025-04-22 22:36:53 +08:00
parent 40b487994d
commit 2c9a5b219b
15 changed files with 382 additions and 50 deletions

View File

@@ -426,7 +426,8 @@ export function extractZapInfoFromReceipt(receiptEvent: Event) {
let description: string | undefined
let preimage: string | undefined
try {
receiptEvent.tags.forEach(([tagName, tagValue]) => {
receiptEvent.tags.forEach((tag) => {
const [tagName, tagValue] = tag
switch (tagName) {
case 'P':
senderPubkey = tagValue
@@ -435,7 +436,7 @@ export function extractZapInfoFromReceipt(receiptEvent: Event) {
recipientPubkey = tagValue
break
case 'e':
eventId = tagValue
eventId = generateEventIdFromETag(tag)
break
case 'bolt11':
invoice = tagValue