PrimalHQ / primal-web-app

Primal's web app for Nostr, as experienced on primal.net.
https://primal.net
MIT License
200 stars 39 forks source link

Seeing duplicate DMs when new messages come in #21

Open erskingardner opened 1 year ago

erskingardner commented 1 year ago

Describe the bug

When a new DM is waiting in the inbox, clicking on that thread shows two chat bubbles with the latest messages (or two per message if there are more than one message). Refreshing clears the duplicate and shows the correct conversation.

Steps to reproduce

Receive a new DM. Go to your DM inbox and you'll see duplicates.

Expected behavior

I would expect to only see one copy of each new DM.

Environment

Running lastest MacOS and latest Brave browser. I'm seeing this behaviour in dev.primal.net and primal.net

OrigiSize commented 1 year ago

I also see this on Firefox. I think it may be related to losing connectivity or switching networks as I take my laptop different places. Sometimes a reload works, other times not.

Giszmo commented 10 months ago

It's not exactly limited to two neither.

Screenshot from 2023-10-26 15-28-59

I thought a spammer's bot was a little too eager and about to block this cold messaging. After a reload ... still not sure if I want to check out his page :D