mirror of
https://github.com/logos-messaging/examples.waku.org.git
synced 2026-01-04 05:43:07 +00:00
Merge pull request #189 from waku-org/danisharora/ephemeral
feat(eth-pm): `ephemeral: true` to relay messages
This commit is contained in:
commit
6aa6cdfeb8
@ -49,7 +49,9 @@ export default function BroadcastPublicKey({
|
|||||||
|
|
||||||
const publicKeyMessageEncoder = createEncoder(
|
const publicKeyMessageEncoder = createEncoder(
|
||||||
PublicKeyContentTopic,
|
PublicKeyContentTopic,
|
||||||
PublicKeyMessageEncryptionKey
|
PublicKeyMessageEncryptionKey,
|
||||||
|
undefined,
|
||||||
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
await waku.relay.send(publicKeyMessageEncoder, { payload });
|
await waku.relay.send(publicKeyMessageEncoder, { payload });
|
||||||
|
|||||||
@ -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 });
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user