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); };