mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-05 07:13:11 +00:00
Fix filtering of own messages
This commit is contained in:
parent
f020aa7a8c
commit
2f2f89cf65
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user