mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-19 17:23:19 +00:00
Expire nip17
This commit is contained in:
@ -82,6 +82,8 @@ const EncryptedChat: React.FC<Props> = ({
|
||||
|
||||
const wrappedEvent = nip17.wrapEvent(slot?.nostrSecKey, recipient, content);
|
||||
|
||||
wrappedEvent.tags.push(['expiration', (wrappedEvent.created_at + 2419200).toString()]);
|
||||
|
||||
federation.roboPool.sendEvent(wrappedEvent);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user