From cf34a726fcd08e3028aeb81869a2754c9b31e7b5 Mon Sep 17 00:00:00 2001 From: koalasat Date: Sat, 24 May 2025 21:21:58 +0200 Subject: [PATCH] Expire nip17 --- frontend/src/components/TradeBox/EncryptedChat/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/components/TradeBox/EncryptedChat/index.tsx b/frontend/src/components/TradeBox/EncryptedChat/index.tsx index 2c07020b..1cdfa0f0 100644 --- a/frontend/src/components/TradeBox/EncryptedChat/index.tsx +++ b/frontend/src/components/TradeBox/EncryptedChat/index.tsx @@ -82,6 +82,8 @@ const EncryptedChat: React.FC = ({ const wrappedEvent = nip17.wrapEvent(slot?.nostrSecKey, recipient, content); + wrappedEvent.tags.push(['expiration', (wrappedEvent.created_at + 2419200).toString()]); + federation.roboPool.sendEvent(wrappedEvent); };