mirror of
https://github.com/status-im/js-waku-examples.git
synced 2025-01-12 15:04:37 +00:00
eth-pm: add: ephemeral: true
to relay messages
This commit is contained in:
parent
a977e27b20
commit
f32fc277fb
@ -118,7 +118,12 @@ async function sendMessage(
|
||||
});
|
||||
const payload = privateMessage.encode();
|
||||
|
||||
const encoder = createEncoder(PrivateMessageContentTopic, recipientPublicKey);
|
||||
const encoder = createEncoder(
|
||||
PrivateMessageContentTopic,
|
||||
recipientPublicKey,
|
||||
undefined,
|
||||
true
|
||||
);
|
||||
|
||||
console.log("pushing");
|
||||
const res = await waku.relay.send(encoder, { payload });
|
||||
|
Loading…
x
Reference in New Issue
Block a user