Recompute feed as soon as we load more (it will grab from storage, then fill in from relays)

This commit is contained in:
Mike Dilger 2024-06-08 12:57:30 +12:00
parent 345f1c1848
commit 763473044e

View File

@ -60,6 +60,10 @@ impl Feed {
if let Some(event) = earliest_event {
// Move the anchor back to the earliest event we have so far
*self.current_feed_anchor.write() = event.created_at;
// Recompute now to get the storage data
self.sync_recompute();
Ok(event.created_at)
} else {
Err(ErrorKind::LoadMoreFailed.into())