Use lightpush for all messages

This commit is contained in:
Franck Royer 2021-06-18 15:11:09 +10:00
parent 6e54e65131
commit 0c825fe391
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ function App() {
if (publicKeyMsg) {
const wakuMsg = encodePublicKeyWakuMessage(publicKeyMsg);
waku.relay.send(wakuMsg).catch((e) => {
waku.lightPush.push(wakuMsg).catch((e) => {
console.error('Failed to send Public Key Message');
});
} else {
@ -116,7 +116,7 @@ function App() {
.then((msg) => {
setPublicKeyMsg(msg);
const wakuMsg = encodePublicKeyWakuMessage(msg);
waku.relay.send(wakuMsg).catch((e) => {
waku.lightPush.push(wakuMsg).catch((e) => {
console.error('Failed to send Public Key Message');
});
})