Client devs quick question:

What makes it hard to get the latest updated reactions on a note ?

is it relays ? my own network connection ?

issue at hand: let’s say two people reply to my note, their replies get a bunch of reactions and I want to see which one got more, by clicking on my note n seeing their replies I can see un updated like counts on their replies, once I click on each individual replies β€œreactions” they tend to update, is it possible for this manual updating to be automatic when I open my note n not their individual replies ?

Thanks πŸ™ lmk what I can do

Reply to this note

Please Login to reply.

Discussion

Hum... On amethyst the count should not change unless the click forces a reconnect with a relay that has closed the connection seconds before.

So that’s why it stays un updated bc the relays close the connection n doesn’t force a reconnect unless you manually click on the note again ? ok cool thank you!

Or scroll to a different post. We load all mentions (zaps+reactions+quotes+replies+reports) to a post only when it becomes visible on scrolling.

the relays are the source of meta discrepancy.

notes arent published to all relays. unless you are reading from all the ones respondents posted to, you will inevitably miss. and even if you are reading from all, the relays themselves have unpubljshed policies and can trottle, paginate in weird ways, etc.

nostr information exchange is more like udp than tcp. best effort, no guaranteed delivery

Yeah apparently relays disconnect all the time n then once I click on the note it forces a reconnect which then updates the like count, kinda understand how it’s not always connected

It related to not opening too many subscriptions to a relay, but should be possible to do this

I neeeeeed thisss it’s so annoying not having the correct count of likes on a reply bc I run a meme contest that the votes are represented by likes

Reaction events can be anywhere. Everywhere. The only way to count for sure is to look EVERYWHERE. That is a problem when there are a thousand relays.

Relays could signal support for having some back-end broad counting system, and the COUNT command, and then you could just cheat by copying the answer off of a relay that you trust who has already asked thousands of relays, so that your client won't need to. I don't know how well this idea has been implemented on relay-side or client-side. Gossip client is not doing it.