primal-web-app icon indicating copy to clipboard operation
primal-web-app copied to clipboard

Warning Modal: "If you continue, you will end up following just one nostr account"

Open amunrarara opened this issue 1 year ago • 2 comments

Describe the bug

This warning appears every time I try to follow an npub:

"If you continue, you will end up following just one nostr account"

Screenshot 2024-09-02 at 8 37 57 AM Screenshot 2024-09-02 at 8 40 23 AM

amunrarara avatar Sep 02 '24 15:09 amunrarara

I have exact same problem. Following does not work 80% of the time. I need to open Damus to follow people I want :/ Any update on this? @amunrarara

It happens on different accounts with different relays

stackingsaunter avatar Feb 23 '25 07:02 stackingsaunter

I took a look at the source code and it appears that the dialog originates from here: https://github.com/PrimalHQ/primal-web-app/blob/870666becfa9e0e3adf0d7322e2ad788c799f3f1/src/contexts/AccountContext.tsx#L1049-L1055

Judging from the if-clause a few lines earlier, it does indeed check whether your new follower list only has one account on it, and will display this dialog if it does. As to why that might happen, my best guess would be that the relay somehow returned an empty follow list.

Not sure what the best way to fix it is, since apparently this DOES sometimes happen. Perhaps a less confusing message and different options would be helpful. I'm thinking something along the lines of "Something went wrong fetching your follower list" with the options of "Try again" and "Cancel".

0xCmdrKeen avatar Oct 08 '25 01:10 0xCmdrKeen