styppo / hamstr

A twitter-style Nostr web client
https://hamstr.to
69 stars 27 forks source link

"LOAD UNREAD" doesn't work if notes are in the future #38

Closed gislik closed 1 year ago

gislik commented 1 year ago

Context

When observing a fast-moving feed, e.g. the global feed, new notes are presented as a "LOAD N UNREAD" button. This keeps the existing feed stable until the user presses the button which renders the new notes. See the image below for reference.

image

Problem

Since timestamps are chosen by the clients there is no guarantee that the timestamps are "correct". If they choose to date the note in the future, the "LOAD N UNREAD" button isn't shown and new notes are rendered in real time. It is almost impossible to read the feed in that state.

See the below image and note that the topmost note is "in a minute". That note will stick there until it becomes the past and other notes fly by.

image

How to reproduce

  1. Post a note with a timestamp greater than the one on your reading client.
  2. Observe the problem described above