diff --git a/examples/eth-dm/src/InitWaku.tsx b/examples/eth-dm/src/InitWaku.tsx index e01f12e85d..e19991bb68 100644 --- a/examples/eth-dm/src/InitWaku.tsx +++ b/examples/eth-dm/src/InitWaku.tsx @@ -144,7 +144,8 @@ async function handleDirectMessage( console.log('Direct Message received:', wakuMsg); if (!wakuMsg.payload) return; const directMessage: DirectMessage = decode(wakuMsg.payload); - if (directMessage.toAddress !== address) return; + // Do not return our own messages + if (directMessage.toAddress === address) return; const text = await decryptMessage(privateKey, directMessage);