Swapped out my pubkey for yours, and it worked just fine first try. My best guess is it's a relay selections issue. First, make sure damus isn't rate limiting you when you send the message, which can happen sometimes. Second, make sure the client you're using is asking for DMs on the correct relays. In Coracle, you'll want to mark damus as an "inbox" relay in your relay settings.
https://gist.github.com/fishcharlie/4197914636ce17a8e2817d2537ea3eeb
Here is my code. Ran this code, expected to receive a message on this npub when using a client that supported NIP-17. But didn’t receive any messages. So not sure even how to begin debugging.
Discussion
Ok I didn’t mark any relay as an “inbox”. I’m still really new to the whole inbox concept. Is there documentation for it? Or do you have a quick explanation of it?
I’ll try setting it as an inbox when I get some free time later today.
I really appreciate your help!! I was actually using Coracle to test this in the first place 😝.
The relay stuff is definitely a work in progress (both from a protocol point of view as well as on coracle). The idea is that kind 10050s are a relay list specifically for DMs (see NIP 17 for details), and clients aren't supposed to send messages anywhere else. Coracle only looks at inbox relays when fetching DMs, which is likely why you didn't find the test events.