Sort feed and fix duplicates #19
Labels
No labels
Blocked
Bug
Documentation
Duplicate
Enhancement
Good first issue
Help wanted
Idea
In progress
Invalid
Major feature set
Packaging
Question
Soon
UI/UX
Upstream
You're dreamin'
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nostr/gossip#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The feed is coming through unsorted
The code is sorting database-loaded events. It is not resorting relay-provided events.
Verify this and debug if not true. Could be DateAgo is broken too. Tabbing out and back gives different DateAgo's. Will open separate issue for that.
I addressed this by sending all new events through the overlord, which keeps a 'feed' array that it keeps sorted, and sends both
addeventsandreplacefeedto the client every time a new event comes in.