A short Unread list read through no longer says more to load (#385)
hasMore() compared nextOffset(), which on Unread counts only the loaded items still unread, with S.total from the answer: once they were read it was 0 against that total, so the page asked for a page that came back empty and took its total, 0, with the items still on screen. Whether more is left now comes from the last answer itself, its offset and items against its total; reading takes an item off the server's list and off nextOffset() alike, so what that answer said is left stays true. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -136,6 +136,8 @@ interface State {
|
||||
entries: Entry[];
|
||||
total: number;
|
||||
offset: number;
|
||||
/// Whether the server has more after the last page it sent, by that answer's own numbers.
|
||||
more: boolean;
|
||||
filter: string;
|
||||
q: string;
|
||||
/// The selected item's guid.
|
||||
|
||||
Reference in New Issue
Block a user