xmtp / xmtp-js

XMTP client SDKs for JavaScript applications.

Home Page:https://xmtp.org/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: Regression allowing self-messaging

neekolas opened this issue · comments

Describe the bug

Users should not be able to initiate conversations with themselves. In xmtp-js they currently can.

Expected behavior

Calling client.conversations.newConversation with your own wallet address should throw an error

Steps to reproduce the bug

await client.conversations.newConversation(client.address) should throw an error. It does not currently.