Skip to content

Commit 2bed86e

Browse files
author
KoalaSat
authored
Merge pull request #1962 from RoboSats/expire-nip17
Expire nip17
2 parents b63051f + cf34a72 commit 2bed86e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • frontend/src/components/TradeBox/EncryptedChat

frontend/src/components/TradeBox/EncryptedChat/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ const EncryptedChat: React.FC<Props> = ({
8282

8383
const wrappedEvent = nip17.wrapEvent(slot?.nostrSecKey, recipient, content);
8484

85+
wrappedEvent.tags.push(['expiration', (wrappedEvent.created_at + 2419200).toString()]);
86+
8587
federation.roboPool.sendEvent(wrappedEvent);
8688
};
8789

0 commit comments

Comments
 (0)