From 959cfe7707295eef80c6511c8963e9e7306ebbec Mon Sep 17 00:00:00 2001 From: koalasat Date: Sun, 10 Aug 2025 16:14:51 +0200 Subject: [PATCH] Fix chat events --- frontend/src/components/TradeBox/EncryptedChat/index.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/frontend/src/components/TradeBox/EncryptedChat/index.tsx b/frontend/src/components/TradeBox/EncryptedChat/index.tsx index bea3ced8..16897944 100644 --- a/frontend/src/components/TradeBox/EncryptedChat/index.tsx +++ b/frontend/src/components/TradeBox/EncryptedChat/index.tsx @@ -86,12 +86,6 @@ const EncryptedChat: React.FC = ({ const wrappedEvent = nip17.wrapEvent(slot?.nostrSecKey, recipient, content); - const fourteenDays = 14 * 24 * 60 * 60; - const randomSeconds = Math.floor(Math.random() * fourteenDays); - const expirationTime = Math.floor(Date.now() / 1000) + fourteenDays + randomSeconds; - - wrappedEvent.tags.push(['expiration', expirationTime.toString()]); - federation.roboPool.sendEvent(wrappedEvent); } catch (error) { console.error('Nostr nip17 error:', error);