eth-pm: add: ephemeral: true to relay messages

This commit is contained in:
danisharora099 2023-01-18 16:12:17 +05:30
parent a977e27b20
commit f32fc277fb
No known key found for this signature in database
GPG Key ID: FBD2BF500037F135

View File

@ -118,7 +118,12 @@ async function sendMessage(
}); });
const payload = privateMessage.encode(); const payload = privateMessage.encode();
const encoder = createEncoder(PrivateMessageContentTopic, recipientPublicKey); const encoder = createEncoder(
PrivateMessageContentTopic,
recipientPublicKey,
undefined,
true
);
console.log("pushing"); console.log("pushing");
const res = await waku.relay.send(encoder, { payload }); const res = await waku.relay.send(encoder, { payload });